Граф коммитов

704 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote d0b76d01bd Bug 1358074 (part 4) - Rename PS::{Mutex,AutoLock,LockRef} as PS{Mutex,AutoLock,LockRef}. r=mstange.
A subsequent patch is going to split PS into two classes, and both classes will
need access to these types. So this patch moves them to the top level.
2017-04-21 13:27:53 +10:00
Nicholas Nethercote 4f297049d6 Bug 1358074 (part 3) - Don't measure process creation time on every profiler_start() call. r=mstange.
We measure it in profiler_init(); there's not point overwriting it with the
same value every time profiler_start() is called!

The patch also renames mStartTime as mProcessStartTime to make things clearer.
2017-04-21 13:23:34 +10:00
Nicholas Nethercote 8b8a0629d2 Bug 1358074 (part 2) - Unexport and rename ProfilerState. r=mstange.
gPS is declared in GeckoProfiler.h so that it can be tested as non-null in a
couple of functions.

- These checks are of little value, so this patch removes them.

- That lets us remove the ProfilerState and gPS declarations from
  GeckoProfiler.h.

- And, because ProfilerState is now only used within platform.cpp, that lets us
  rename it as PS, which is how we currently refer to it (via a typedef) within
  platform.cpp anyway.
2017-04-21 13:23:34 +10:00
Nicholas Nethercote c07bd9e8bc Bug 1358074 (part 1) - Fix some bad indentation in platform.cpp. r=mstange. 2017-04-19 14:47:18 +10:00