Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
 public PerfProfilerActionFilter(AsynQueueManager <ProfilerMessage> queue)
 {
     m_Queue = queue;
 }