public string GetSampleName (int sampleIndex);

Parameters

sampleIndexIndex of the Profiler sample.

Returns

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

Description

Gets the name of the specific sample.

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