/**
  * Adds an occurrence of this event to the cumulative counters. This method can be used as an
  * alternative to <code>startRun</code> and <code>endRun</code> for clients that want to track the
  * context and execution time separately.
  *
  * @param elapsed The elapsed time of the new occurrence in milliseconds
  * @param contextName The context for the event to return, or <code>null</code>. The context
  *     optionally provides extra information about an event, such as the name of a project being
  *     built, or the input of an editor being opened.
  */
 public void addRun(long elapsed, String contextName) {
   if (!ENABLED) return;
   runCount++;
   runningTime += elapsed;
   if (elapsed > getThreshold(event))
     PerformanceStatsProcessor.failed(
         createFailureStats(contextName, elapsed), blamePluginId, elapsed);
   if (TRACE_SUCCESS) PerformanceStatsProcessor.changed(this);
 }