aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/trace
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-07-26 08:51:43 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-26 13:19:49 +0000
commit9ac801c12c48b67b48e5a8ef2876a093b7de73fc (patch)
tree542b3c4798c0a219571adecd66866bb4f5a2ebd1 /tools/trace
parentbb2c14e4b702c4399409706f8291f50d63677951 (diff)
ok, exit() child processes instead of _exit()
We want the atexit() hook to print deferred logs (crash dumps, etc.) only when the main, parent process exits. Ending the child processes with _exit() instead of exit() avoids calling atexit() hooks, but also global destructors. This is more complex than we need: we can just print before main() exits. Only the main, parent process gets there. This now runs each child process' global destructors, which makes trace.json "work": we get a trace of whichever child process finishes last. It's a start. Change-Id: I0cc2b12592f0f79e73a43a160b9fd06dba1fee25 Reviewed-on: https://skia-review.googlesource.com/26800 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tools/trace')
0 files changed, 0 insertions, 0 deletions