Version: 2022.2
言語: 日本語

AsyncReadManagerMetricsFiltersConstructor

マニュアルに切り替える
public AsyncReadManagerMetricsFilters ();
public AsyncReadManagerMetricsFilters (ulong typeID);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.ProcessingState state);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.FileReadType readType);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.Priority priorityLevel);
public AsyncReadManagerMetricsFilters (Unity.IO.LowLevel.Unsafe.AssetLoadingSubsystem subsystem);

パラメーター

typeID The YAML Class ID for the asset type to include in the summary calculations. See the YAML Class ID Reference page.
state The Processing State to include in the summary calculations.
readType The type of file read (async or sync) to include in the summary calculations.
priorityLevel The priority level to include in the summary calculations.
subsystem The Subsystem 'tag' to include in the summary calculations.

説明

Constructor for an instance of the Summary Metrics Filters, used to filter the metrics data that is included in the calculation of a summary.

The constructor takes one value of a filter. To take multiple values for the same filter, you can use the array constructor (below). For multiple filters, use the Set method for additional required filter types.

using Unity.IO.LowLevel.Unsafe;
using UnityEngine;

public class GetMetricsSummary : MonoBehaviour { #if ENABLE_PROFILER && UNITY_2020_2_OR_NEWER public void Start() { // Create a filter for texture file reads that have been completed AsyncReadManagerMetricsFilters m_TextureFilter = new AsyncReadManagerMetricsFilters(AssetLoadingSubsystem.Texture); m_TextureFilter.SetStateFilter(ProcessingState.Completed); }

#endif }

public AsyncReadManagerMetricsFilters (ulong[] typeIDs, ProcessingState[] states, FileReadType[] readTypes, Priority[] priorityLevels, AssetLoadingSubsystem[] subsystems);
public AsyncReadManagerMetricsFilters (ulong[] typeIDs);
public AsyncReadManagerMetricsFilters (ProcessingState[] states);
public AsyncReadManagerMetricsFilters (FileReadType[] readTypes);
public AsyncReadManagerMetricsFilters (Priority[] priorityLevels);
public AsyncReadManagerMetricsFilters (AssetLoadingSubsystem[] subsystems);

パラメーター

typeIDs An array of all the TypeIDs to include in the summary calculations.
states An array of all the ProcessingStates to include in the summary calculations.
readTypes An array of all the FileReadTypes to include in the summary calculations. As there are only two options, this is generally unnecesary.
priorityLevels An array of all the Priority levels to include in the summary calculations. As there are only two options, this is generally unnecesary.
subsystems An array of all the Subsystem 'tags' to include in the summary calculations.

説明

Constructor for an instance of the Summary Metrics Filters, used to filter the metrics data that is included in the calculation of a summary.

The constructor takes an array of values for a single filter, or for all of the filters. For multiple filters, but not all, use the Set method for additional required filter types.

using Unity.IO.LowLevel.Unsafe;
using UnityEngine;

public class GetMetricsSummary : MonoBehaviour { #if ENABLE_PROFILER && UNITY_2020_2_OR_NEWER public void Start() { // Create a filter for mesh and texture file reads that have been completed or failed AssetLoadingSubsystem[] assetLoadingSubsystems = new AssetLoadingSubsystem[] {AssetLoadingSubsystem.Texture, AssetLoadingSubsystem.Mesh}; AsyncReadManagerMetricsFilters m_SummaryFilter = new AsyncReadManagerMetricsFilters(assetLoadingSubsystems); m_SummaryFilter.SetStateFilter(new ProcessingState[] { ProcessingState.Completed, ProcessingState.Failed }); }

#endif }