|
|
DescriptionAdd process uptime metadata event in tracing
1. Make CurrentProcessInfo::CreationTime consistent on Linux with Win
and Mac implementation: return null value instead of crashing on
failure.
2. Use process_info_linux.cc in Android too, it works the same.
3. Add the total process uptime as meadata event in traces and
whitelist in filtered mode.
BUG=654667
Review-Url: https://codereview.chromium.org/2753133002
Cr-Commit-Position: refs/heads/master@{#458799}
Committed: https://chromium.googlesource.com/chromium/src/+/a714d7dc0f1b8ecdee128db04e24b0da1087df8a
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : . #
Total comments: 4
Patch Set 4 : add unittest and rename to uptime. #
Messages
Total messages: 41 (30 generated)
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
Description was changed from ========== Add process runtime metadata event in tracing Use process_info_linux.cc in Android, it works. Add the total process runtime as meadata event in traces. BUG=654667 ========== to ========== Add process runtime metadata event in tracing 1. Make CurrentProcessInfo::CreationTime consistent on Linux with Win and Mac implementation: return null value instead of crashing on failure. 2. Use process_info_linux.cc in Android too, it works the same. 3. Add the total process runtime as meadata event in traces. BUG=654667 ==========
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
ssid@chromium.org changed reviewers: + oysteine@chromium.org, thakis@chromium.org
+thakis for base/ changes +oysteine for tracing files ptal thanks!
On 2017/03/21 at 01:04:25, ssid wrote: > +thakis for base/ changes > > +oysteine for tracing files > > ptal thanks! tracing lgtm
primiano@chromium.org changed reviewers: + primiano@chromium.org
one minor comment, although still lgtm from my viewpoint https://codereview.chromium.org/2753133002/diff/60001/base/trace_event/trace_... File base/trace_event/trace_log.cc (right): https://codereview.chromium.org/2753133002/diff/60001/base/trace_event/trace_... base/trace_event/trace_log.cc:1509: current_thread_id, "process_runtime_seconds", I'm the usual pain when it comes to naming, but I'd probably s/runtime/uptime/ call this process_uptime_seconds. When I see runtime I never know whether that refers to "amount of cpu time" used or "wall time".
base/ lgtm https://codereview.chromium.org/2753133002/diff/60001/base/process/process_in... File base/process/process_info_linux.cc (right): https://codereview.chromium.org/2753133002/diff/60001/base/process/process_in... base/process/process_info_linux.cc:20: if (!start_ticks) this is covered by tests, yes?
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks. Nico, ptal at unittest file. https://codereview.chromium.org/2753133002/diff/60001/base/process/process_in... File base/process/process_info_linux.cc (right): https://codereview.chromium.org/2753133002/diff/60001/base/process/process_in... base/process/process_info_linux.cc:20: if (!start_ticks) On 2017/03/21 21:01:55, Nico wrote: > this is covered by tests, yes? I added an unittest. https://codereview.chromium.org/2753133002/diff/60001/base/trace_event/trace_... File base/trace_event/trace_log.cc (right): https://codereview.chromium.org/2753133002/diff/60001/base/trace_event/trace_... base/trace_event/trace_log.cc:1509: current_thread_id, "process_runtime_seconds", On 2017/03/21 17:36:22, Primiano Tucci wrote: > I'm the usual pain when it comes to naming, but I'd probably s/runtime/uptime/ > call this process_uptime_seconds. > When I see runtime I never know whether that refers to "amount of cpu time" used > or "wall time". Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
lgtm
The CQ bit was checked by ssid@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from primiano@chromium.org, oysteine@chromium.org Link to the patchset: https://codereview.chromium.org/2753133002/#ps80001 (title: "add unittest and rename to uptime.")
Description was changed from ========== Add process runtime metadata event in tracing 1. Make CurrentProcessInfo::CreationTime consistent on Linux with Win and Mac implementation: return null value instead of crashing on failure. 2. Use process_info_linux.cc in Android too, it works the same. 3. Add the total process runtime as meadata event in traces. BUG=654667 ========== to ========== Add process uptime metadata event in tracing 1. Make CurrentProcessInfo::CreationTime consistent on Linux with Win and Mac implementation: return null value instead of crashing on failure. 2. Use process_info_linux.cc in Android too, it works the same. 3. Add the total process uptime as meadata event in traces and whitelist in filtered mode. BUG=654667 ==========
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder probably lacks capacity)
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by ssid@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by ssid@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1490205324420990, "parent_rev": "affe6ebb8948d82592a7cf50e879eda526eabe81", "commit_rev": "a714d7dc0f1b8ecdee128db04e24b0da1087df8a"}
Message was sent while issue was closed.
Description was changed from ========== Add process uptime metadata event in tracing 1. Make CurrentProcessInfo::CreationTime consistent on Linux with Win and Mac implementation: return null value instead of crashing on failure. 2. Use process_info_linux.cc in Android too, it works the same. 3. Add the total process uptime as meadata event in traces and whitelist in filtered mode. BUG=654667 ========== to ========== Add process uptime metadata event in tracing 1. Make CurrentProcessInfo::CreationTime consistent on Linux with Win and Mac implementation: return null value instead of crashing on failure. 2. Use process_info_linux.cc in Android too, it works the same. 3. Add the total process uptime as meadata event in traces and whitelist in filtered mode. BUG=654667 Review-Url: https://codereview.chromium.org/2753133002 Cr-Commit-Position: refs/heads/master@{#458799} Committed: https://chromium.googlesource.com/chromium/src/+/a714d7dc0f1b8ecdee128db04e24... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/a714d7dc0f1b8ecdee128db04e24...
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/2768123002/ by dgozman@chromium.org. The reason for reverting is: Looks like this broke base_unittests on Linux TSan: https://uberchromegw.corp.google.com/i/chromium.memory/builders/Linux%20TSan%....
Message was sent while issue was closed.
Patchset #5 (id:100001) has been deleted |