
        continue;
      }
      var sleepTime = event.start - lastTaskEnd;
      var isWakeUp = sleepTime >= IDLE_THRESHOLD_MILLISECONDS;
      lastTaskEnd = taskEnd;
      if (!isWakeUp)
        continue;
      var reason = sanitizeReason(findWakeUpReason(event));
      if (wakeUps[reason] === undefined)
        wakeUps[reason] = {frequency: 0, sleepTimes: []};
      wakeUps[reason].frequency++;
      wakeUps[reason].sleepTimes.push(sleepTime);
      foundWakeUps = true;
    }
    return foundWakeUps ? wa