public static void Start(GlobalFilterCollection filters, Action <List <ProfilerMessage> > queueItemHandler, int boundedCapacity = 512, int itemCountPerBatchToHandle = 256, int dequeueThreadAmountMaxLimit = 1, int flushIntervalSeconds = 60, Action <Exception> exceptionHandler = null) { if (PerfProfiler.Disabled == false) { s_Queue = new AsynQueueManager <ProfilerMessage>(new LocalMemoryQueue <ProfilerMessage>(boundedCapacity), queueItemHandler, itemCountPerBatchToHandle, dequeueThreadAmountMaxLimit, flushIntervalSeconds, exceptionHandler); filters.Add(new PerfProfilerActionFilter(s_Queue)); } }
public PerfProfilerActionFilter(AsynQueueManager <ProfilerMessage> queue) { m_Queue = queue; }