commit | c64b05f7cab5122f3f25c4c1f6dc8ed9a660c7b4 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Thu Dec 05 10:30:52 2019 +0000 |
committer | Primiano Tucci <primiano@google.com> | Thu Dec 05 10:30:52 2019 +0000 |
tree | dce5fa3f9e4147d1e47ccaa035070ed7fde0575b | |
parent | 94c47f0bf0b1e51158e219c5b0b711d0afd3f278 [diff] |
Logging: don't emit ANSI color codes if !isatty() This CL makes a bunch of changes to logging: - Move the core logic to a dedicated .cc file - Add a timestamp in front of the logs (wall time % 1000) to better debug across processe (not in the logcat case)s. - Enables the coloured output only when stderr is a tty. - Fixes the truncation of the filename to be left-truncated rather than right-truncated (which is more useful in general). Bug: 145150184 Change-Id: Idd7864057ed9411cea0da94ffb7ef520c21bef4f
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.
You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev
on Freenode.