Scripting API

CustomSampler

class in UnityEngine.Profiling · UnityEngine.CoreModule · inherits from Sampler

3 of 3 of Unity's membersUnity's documentation
In Tassix

A sampler of the script's own (Begin/End around its code); no-ops without a profiler.

Properties 1

bool isValid { get; }

Methods 3

void Begin()
void Begin(Object targetObject)
static CustomSampler Create(string name, bool collectGpuData = false)
void End()