Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ab86ad3 authored by Christopher Ferris's avatar Christopher Ferris Committed by Gerrit Code Review
Browse files

Merge "Remove PauseTiming/ResumeTiming calls."

parents 09123383 5169c167
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -70,7 +70,6 @@ static bool CountMaps(pid_t pid, size_t* num_maps) {
}

static void CreateMap(benchmark::State& state, BacktraceMap* (*map_func)(pid_t, bool)) {
  state.PauseTiming();
  // Create a remote process so that the map data is exactly the same.
  // Also, so that we can create a set number of maps.
  pid_t pid;
@@ -132,7 +131,6 @@ static void CreateMap(benchmark::State& state, BacktraceMap* (*map_func)(pid_t,
    return;
  }

  state.ResumeTiming();
  while (state.KeepRunning()) {
    for (size_t i = 0; i < static_cast<size_t>(state.range(0)); i++) {
      BacktraceMap* map = map_func(pid, false);
@@ -143,7 +141,6 @@ static void CreateMap(benchmark::State& state, BacktraceMap* (*map_func)(pid_t,
      delete map;
    }
  }
  state.PauseTiming();

  kill(pid, SIGKILL);
  waitpid(pid, nullptr, 0);