  var allWakeUps = {};
    for (var pid in model.processes) {
      var process = model.processes[pid];
      for (var tid in process.threads) {
        var thread = process.threads[tid];
        var wakeUps = findWakeUpsOnThread(thread);
        if (!wakeUps === undefined)
          continue;
        if (!(thread.name in allWakeUps))
          allWakeUps[thread.name] = {};
        updateThreadWakeUps(allWakeUps[thread.name], wakeUps);
      }
    }

    // Normalize frequency to wake-ups/second.
    // Not