RawFrameDataView.GetSampleChildrenCountRecursive

Switch to Manual
public int GetSampleChildrenCountRecursive (int sampleIndex);

Parameters

sampleIndexIndex of the Profiler sample.

Returns

int Returns amount of direct and indirect child samples.

Description

Gets amount of direct and indirect child samples for the specific sample.

Use to quickly advance to the next sibling sample.

using UnityEditor.Profiling;

public class Example { public static int SkipAllChildren(RawFrameDataView frameData, int sampleIndex) { return frameData.GetSampleChildrenCountRecursive(sampleIndex) + sampleIndex + 1; } }