Version: 2021.1
public string GetSampleName (int sampleIndex);

参数

sampleIndex Index of the Profiler sample.

返回

string Returns sample name. Returns null if sample index is invalid.

描述

Gets the name of the specific sample.

Note: GetSampleName allocates string when called. Use GetSampleMarkerId to avaoid allocations for simple lookups.