ドキュメント

Unity Engine

Download Unity

Unity Engine

EndSample

Adds a command to end profile sampling.
読み終わるまでの所要時間 1 分最終更新 7日前

Definition

EndSample(string)

Adds a command to end profile sampling.
public void EndSample(string name)

Parameters

name

Name of the profile information used for sampling.

Remarks

Schedules a performance profiling sample to end when the Command Buffer reaches this point.
To begin a performance profiling sample, call CommandBuffer.BeginSample. At the and of the sample, call this method with the same argument as the BeginSample call.

EndSample(CustomSampler)

Adds a command to end profile sampling.
注意
Deprecated. Use EndSample(ProfilerMarker) instead.
public void EndSample(CustomSampler sampler)

Parameters

The CustomSampler that the CommandBuffer uses for sampling. This sampler is deprecated, use the ProfilerMarker overload instead.

Remarks

Schedules a performance profiling sample to end when the Command Buffer reaches this point.
To begin a performance profiling sample, call CommandBuffer.BeginSample. At the and of the sample, call this method with the same argument as the BeginSample call.

EndSample(ProfilerMarker)

Adds a command to end profile sampling.
[Conditional("ENABLE_PROFILER")]public void EndSample(ProfilerMarker marker)

Parameters

The ProfilerMarker that the CommandBuffer uses for sampling.

Remarks

Schedules a performance profiling sample to end when the Command Buffer reaches this point.
To begin a performance profiling sample, call CommandBuffer.BeginSample. At the and of the sample, call this method with the same argument as the BeginSample call.