History log of /external/skia/tools/trace/SkEventTracingPriv.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1e0968684065b39dfe3ea8b7fac05e37b712ef61 26-Jul-2017 Brian Osman <brianosman@google.com> Add --traceMatch argument to filter tracing categories

Bug: skia:
Change-Id: I1449f0f4d7d9ab6225d98c601eafa7461a2a7dde
Reviewed-on: https://skia-review.googlesource.com/27120
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
/external/skia/tools/trace/SkEventTracingPriv.cpp
39c08ac3be30f9956cea7c5e4fd9a1d86e993a65 26-Jul-2017 Brian Osman <brianosman@google.com> Automatically prepend "disabled-by-default-" to TRACE categories

Ensures that all Skia events are disabled by default in Chrome, and
eliminates redundant typing.

Bug: skia:
Change-Id: I289c5e5a01084fcf4cccf512da65a4727f4aeca2
Reviewed-on: https://skia-review.googlesource.com/26880
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
/external/skia/tools/trace/SkEventTracingPriv.cpp
3bf0042caa550b1f0cd56633ed66174141f2728f 24-Jul-2017 Mike Klein <mtklein@chromium.org> ok, basic tracing support

This doesn't do anything in the default process-per-task mode, because
those child tasks exit using _exit(), which doesn't trigger the event
tracer destructor to flush.

I don't remember exactly why I exit with _exit(), so I'm going to have
to follow up on that. But written this way as I think I'm at least
initializing the tracing in the right place for each process for the
future.

In threaded (-j -1) and serial (-j 0) modes, everything seems to work
great.

I'm also thinking I might add a tracer like the SkDebugf tracer but
using ok_log(), which handles interlaced logging from concurrent tasks
better than vanilla SkDebugf.

Example:
ninja -C out ok; and out/ok gm 8888 filter:search=fontmgr_bounds trace -j -1

Change-Id: Ia3cdad930ce65e6fd12fa74f3fb00894e35138d3
Reviewed-on: https://skia-review.googlesource.com/26350
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
/external/skia/tools/trace/SkEventTracingPriv.cpp
bc8150feef7aebb92811e8d976b65b04767c44f8 24-Jul-2017 Brian Osman <brianosman@google.com> Faster, thread-safe implementation

Bug: skia:
Change-Id: I401c5a9885c348aa424ab07b094acecddb209490
Reviewed-on: https://skia-review.googlesource.com/25860
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
/external/skia/tools/trace/SkEventTracingPriv.cpp
65e4c614f0edbcf8d05bfc2a25a6e60d277fb7df 21-Jul-2017 Brian Osman <brianosman@google.com> Add category support to JSON and SkDebugf tracing

Bug: skia:
Change-Id: I4d0bdb9d954e49b79ace0552d7b74b36a512c00d
Reviewed-on: https://skia-review.googlesource.com/25642
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
/external/skia/tools/trace/SkEventTracingPriv.cpp
53136aa93f0d0e72facabb70a7d40ed265e4be0e 20-Jul-2017 Brian Osman <brianosman@google.com> First stab at JSON event tracer

Not yet thread safe (so it forces threading off).
Builds JSON on the fly, so overhead is certainly bad.
Plan to fix all of that, but this at least "works".

There is now one tracing flag: 'trace'.
- 'debugf' installs the SkDebugf tracer.
- 'atrace' installs the Android ATrace tracer.
- Any other value is interpreted as a filename, and
produces a JSON file for chrome://tracing.

All three modes work in DM, nanobench, and Viewer.

Bug: skia:
Change-Id: I3fbc22382b99418a508c670be2770195c0a1c364
Reviewed-on: https://skia-review.googlesource.com/24781
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
/external/skia/tools/trace/SkEventTracingPriv.cpp