Beispiel #1
0
 public void OnMethodEnter()
 {
     if (PerfProfiler.Disabled == false)
     {
         info = new ExecutionInfo();
         info.Start();
     }
 }
Beispiel #2
0
 public void OnActionExecuting(ActionExecutingContext filterContext)
 {
     if (PerfProfiler.Disabled == false)
     {
         ExecutionInfo info = new ExecutionInfo();
         filterContext.RequestContext.HttpContext.Items["ibb360_PerfProfilerActionFilter"] = info;
         info.Start();
     }
 }
Beispiel #3
0
 public void OnActionExecuted(ActionExecutedContext filterContext)
 {
     if (PerfProfiler.Disabled == false)
     {
         ExecutionInfo info = filterContext.RequestContext.HttpContext.Items["ibb360_PerfProfilerActionFilter"] as ExecutionInfo;
         if (info != null)
         {
             info.Stop();
             ProfilerMessage msg = info.ToMessage(filterContext.RequestContext.HttpContext.Request.RawUrl, "none", "none", "none");
             if (m_Queue != null)
             {
                 m_Queue.Enqueue(msg);
             }
         }
     }
 }