Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Issue 1072133006: Add granular file tracing. (Closed)

Created:
5 years, 8 months ago by Dan Beam
Modified:
5 years, 7 months ago
CC:
chromium-reviews, wfh+watch_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@do-initialize
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add granular file tracing. R=thestig@chromium.org,nduca@chromium.org BUG=480665 Committed: https://crrev.com/492dc31b433656444c9c74213a133c19c8ebfa21 Cr-Commit-Position: refs/heads/master@{#329114}

Patch Set 1 : based on master #

Patch Set 2 : add async file tracing #

Total comments: 12

Patch Set 3 : TRACE_EVENT* #

Total comments: 9

Patch Set 4 : take 2 #

Total comments: 9

Patch Set 5 : add TRACE_EVENT_ID* #

Patch Set 6 : herp #

Total comments: 2

Patch Set 7 : asdf #

Total comments: 1

Patch Set 8 : win fixes #

Total comments: 8

Patch Set 9 : TraceEnabler #

Patch Set 10 : remove some ; from end of macros #

Patch Set 11 : actually compiles :D #

Total comments: 4

Patch Set 12 : thestig@ review #

Total comments: 2

Patch Set 13 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -37 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M base/files/file.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +17 lines, -9 lines 0 comments Download
M base/files/file.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +11 lines, -5 lines 0 comments Download
M base/files/file_posix.cc View 1 2 3 4 5 6 7 8 9 10 20 chunks +31 lines, -6 lines 0 comments Download
A base/files/file_tracing.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +95 lines, -0 lines 0 comments Download
A base/files/file_tracing.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +56 lines, -0 lines 0 comments Download
M base/files/file_win.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +37 lines, -7 lines 0 comments Download
M base/trace_event/trace_event.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +26 lines, -10 lines 0 comments Download
A content/browser/tracing/file_tracing_provider_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +35 lines, -0 lines 0 comments Download
A content/browser/tracing/file_tracing_provider_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +55 lines, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 97 (46 generated)
Dan Beam
screenshots: http://imgur.com/a/dM3U1 shared traces internally with folks via drive (they were too big to attachment ...
5 years, 8 months ago (2015-04-23 22:32:19 UTC) #9
Dan Beam
https://codereview.chromium.org/1072133006/diff/160001/base/files/file_win.cc File base/files/file_win.cc (right): https://codereview.chromium.org/1072133006/diff/160001/base/files/file_win.cc#newcode135 base/files/file_win.cc:135: ScopedFileTrace trace(path_, "WriteAtCurrentPos", size); It's also arguable that we'd ...
5 years, 8 months ago (2015-04-24 03:45:19 UTC) #10
Sami
https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc File base/trace_event/scoped_file_trace.cc (right): https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc#newcode17 base/trace_event/scoped_file_trace.cc:17: : path_(path.AsUTF8Unsafe()), event_(event), bytes_(bytes) { This causes some string ...
5 years, 8 months ago (2015-04-24 10:42:55 UTC) #12
Dan Beam
https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc File base/trace_event/scoped_file_trace.cc (right): https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc#newcode17 base/trace_event/scoped_file_trace.cc:17: : path_(path.AsUTF8Unsafe()), event_(event), bytes_(bytes) { On 2015/04/24 10:42:55, Sami ...
5 years, 8 months ago (2015-04-24 16:37:19 UTC) #13
Dan Beam
https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc File base/trace_event/scoped_file_trace.cc (right): https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc#newcode17 base/trace_event/scoped_file_trace.cc:17: : path_(path.AsUTF8Unsafe()), event_(event), bytes_(bytes) { On 2015/04/24 16:37:19, Dan ...
5 years, 8 months ago (2015-04-24 16:44:49 UTC) #14
Sami
https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc File base/trace_event/scoped_file_trace.cc (right): https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc#newcode17 base/trace_event/scoped_file_trace.cc:17: : path_(path.AsUTF8Unsafe()), event_(event), bytes_(bytes) { On 2015/04/24 16:37:19, Dan ...
5 years, 8 months ago (2015-04-24 16:45:42 UTC) #15
Dan Beam
https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc File base/trace_event/scoped_file_trace.cc (right): https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc#newcode17 base/trace_event/scoped_file_trace.cc:17: : path_(path.AsUTF8Unsafe()), event_(event), bytes_(bytes) { On 2015/04/24 16:45:41, Sami ...
5 years, 8 months ago (2015-04-24 17:29:50 UTC) #16
Sami
https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc File base/trace_event/scoped_file_trace.cc (right): https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc#newcode17 base/trace_event/scoped_file_trace.cc:17: : path_(path.AsUTF8Unsafe()), event_(event), bytes_(bytes) { On 2015/04/24 17:29:50, Dan ...
5 years, 8 months ago (2015-04-24 17:34:47 UTC) #17
Dan Beam
On 2015/04/24 17:34:47, Sami wrote: > https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc > File base/trace_event/scoped_file_trace.cc (right): > > https://codereview.chromium.org/1072133006/diff/160001/base/trace_event/scoped_file_trace.cc#newcode17 > ...
5 years, 8 months ago (2015-04-24 18:06:21 UTC) #18
Dan Beam
updated to just use TRACE_EVENT*() macros https://codereview.chromium.org/1072133006/diff/190001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/1072133006/diff/190001/base/files/file.cc#newcode75 base/files/file.cc:75: "path", path_.AsUTF8Unsafe()); should ...
5 years, 8 months ago (2015-04-24 22:27:02 UTC) #19
Dan Beam
Moving nduca@ and skyostil@ to CC Ping thestig@
5 years, 7 months ago (2015-04-25 05:24:45 UTC) #22
Lei Zhang
https://codereview.chromium.org/1072133006/diff/190001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/1072133006/diff/190001/base/files/file.cc#newcode74 base/files/file.cc:74: TRACE_EVENT_ASYNC_END1(kTraceGroup, "File", this, We may not always call TRACE_EVENT_ASYNC_BEGIN1() ...
5 years, 7 months ago (2015-04-27 22:55:55 UTC) #23
Dan Beam
https://codereview.chromium.org/1072133006/diff/190001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/1072133006/diff/190001/base/files/file.cc#newcode74 base/files/file.cc:74: TRACE_EVENT_ASYNC_END1(kTraceGroup, "File", this, On 2015/04/27 22:55:55, Lei Zhang wrote: ...
5 years, 7 months ago (2015-04-28 03:17:11 UTC) #24
Lei Zhang
It'll probably be good to get the blessing from some tracing folks, but otherwise looks ...
5 years, 7 months ago (2015-04-28 03:53:27 UTC) #25
Dan Beam
https://codereview.chromium.org/1072133006/diff/190001/base/files/file_posix.cc File base/files/file_posix.cc (right): https://codereview.chromium.org/1072133006/diff/190001/base/files/file_posix.cc#newcode585 base/files/file_posix.cc:585: #else On 2015/04/28 03:53:26, Lei Zhang wrote: > On ...
5 years, 7 months ago (2015-04-28 04:06:10 UTC) #28
Lei Zhang
lgtm
5 years, 7 months ago (2015-04-28 04:22:29 UTC) #29
Sami
Tracing part lgtm -- assuming this produces useful looking traces :) https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h File base/files/file.h (right): ...
5 years, 7 months ago (2015-04-28 11:10:39 UTC) #31
Dan Beam
https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h#newcode308 base/files/file.h:308: static const char kTraceGroup[]; On 2015/04/28 11:10:39, Sami wrote: ...
5 years, 7 months ago (2015-04-28 15:47:58 UTC) #32
Sami
https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h#newcode308 base/files/file.h:308: static const char kTraceGroup[]; On 2015/04/28 15:47:58, Dan Beam ...
5 years, 7 months ago (2015-04-28 15:51:05 UTC) #33
groby-ooo-7-16
Drive-by, sorry :) https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h#newcode308 base/files/file.h:308: static const char kTraceGroup[]; On 2015/04/28 ...
5 years, 7 months ago (2015-04-28 20:26:55 UTC) #34
Dan Beam
+nduca for base/trace_event/OWNERS skyostil/nduca: what do you think about TRACE_EVENT_ID*()? https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/1072133006/diff/250001/base/files/file.h#newcode308 ...
5 years, 7 months ago (2015-04-29 02:48:03 UTC) #36
Sami
https://codereview.chromium.org/1072133006/diff/290001/base/trace_event/trace_event.h File base/trace_event/trace_event.h (right): https://codereview.chromium.org/1072133006/diff/290001/base/trace_event/trace_event.h#newcode244 base/trace_event/trace_event.h:244: category_group, name, id, arg1_name, arg1_val) It's not clear what ...
5 years, 7 months ago (2015-04-29 15:01:51 UTC) #37
nduca
i'm pretty confused what the ids are being used for. i still recommend using async ...
5 years, 7 months ago (2015-04-29 15:59:35 UTC) #39
Dan Beam
On 2015/04/29 15:59:35, nduca wrote: > i'm pretty confused what the ids are being used ...
5 years, 7 months ago (2015-04-29 18:12:10 UTC) #40
oystein (OOO til 10th of July)
On 2015/04/29 15:59:35, nduca wrote: > i'm pretty confused what the ids are being used ...
5 years, 7 months ago (2015-04-29 18:12:18 UTC) #41
Dan Beam
On 2015/04/29 18:12:18, Oystein wrote: > On 2015/04/29 15:59:35, nduca wrote: > > i'm pretty ...
5 years, 7 months ago (2015-04-29 18:15:55 UTC) #42
Dan Beam
ok, let's try again by adding a scoped NESTABLE macro this time. this requires a ...
5 years, 7 months ago (2015-04-30 04:40:13 UTC) #46
nduca
i don't think we actually need the complete async event. we can make a scoped ...
5 years, 7 months ago (2015-04-30 15:28:21 UTC) #47
Dan Beam
+oysteine@ to review for nduca@ On 2015/04/30 15:28:21, nduca wrote: > i don't think we ...
5 years, 7 months ago (2015-04-30 21:14:20 UTC) #52
oystein (OOO til 10th of July)
I think this is looking pretty good now; minor points below. https://codereview.chromium.org/1072133006/diff/410001/base/files/file.cc File base/files/file.cc (right): ...
5 years, 7 months ago (2015-05-01 18:15:31 UTC) #53
oystein (OOO til 10th of July)
https://codereview.chromium.org/1072133006/diff/410001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/1072133006/diff/410001/base/files/file.cc#newcode25 base/files/file.cc:25: FILE_TRACING_BEGIN(); It could be cleaner to do these BEGIN/END ...
5 years, 7 months ago (2015-05-01 18:21:05 UTC) #54
Dan Beam
https://codereview.chromium.org/1072133006/diff/410001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/1072133006/diff/410001/base/files/file.cc#newcode25 base/files/file.cc:25: FILE_TRACING_BEGIN(); On 2015/05/01 18:21:05, Oystein wrote: > It could ...
5 years, 7 months ago (2015-05-01 23:29:04 UTC) #56
oystein (OOO til 10th of July)
On 2015/05/01 23:29:04, Dan Beam wrote: > https://codereview.chromium.org/1072133006/diff/410001/base/files/file.cc > File base/files/file.cc (right): > > https://codereview.chromium.org/1072133006/diff/410001/base/files/file.cc#newcode25 ...
5 years, 7 months ago (2015-05-02 01:21:28 UTC) #58
nduca
lgtm but you'll need some base/ owner
5 years, 7 months ago (2015-05-04 16:49:16 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072133006/490001
5 years, 7 months ago (2015-05-04 16:50:06 UTC) #62
commit-bot: I haz the power
Committed patchset #10 (id:490001)
5 years, 7 months ago (2015-05-04 18:16:41 UTC) #63
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/a6e05c977096a03774e5406d63ad80c0166f9adc Cr-Commit-Position: refs/heads/master@{#328153}
5 years, 7 months ago (2015-05-04 18:18:34 UTC) #64
Dan Beam
A revert of this CL (patchset #10 id:490001) has been created in https://codereview.chromium.org/1127713004/ by dbeam@chromium.org. ...
5 years, 7 months ago (2015-05-05 00:49:50 UTC) #65
Dan Beam
oysteine@: how 'bout this?
5 years, 7 months ago (2015-05-07 05:29:29 UTC) #77
oystein (OOO til 10th of July)
On 2015/05/07 05:29:29, Dan Beam wrote: > oysteine@: how 'bout this? Tracing part still lgtm ...
5 years, 7 months ago (2015-05-07 23:31:54 UTC) #80
Lei Zhang
https://codereview.chromium.org/1072133006/diff/750001/base/files/file_tracing.h File base/files/file_tracing.h (right): https://codereview.chromium.org/1072133006/diff/750001/base/files/file_tracing.h#newcode52 base/files/file_tracing.h:52: static Provider* g_provider; Can you have a static SetProvider() ...
5 years, 7 months ago (2015-05-08 17:40:19 UTC) #81
Dan Beam
https://codereview.chromium.org/1072133006/diff/750001/base/files/file_tracing.h File base/files/file_tracing.h (right): https://codereview.chromium.org/1072133006/diff/750001/base/files/file_tracing.h#newcode52 base/files/file_tracing.h:52: static Provider* g_provider; On 2015/05/08 17:40:19, Lei Zhang wrote: ...
5 years, 7 months ago (2015-05-08 18:54:03 UTC) #82
Lei Zhang
lgtm https://codereview.chromium.org/1072133006/diff/790001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/1072133006/diff/790001/content/browser/tracing/tracing_controller_impl.cc#newcode61 content/browser/tracing/tracing_controller_impl.cc:61: base::FileTracing::SetProvider(new FileTracingProviderImpl); Can you mention you are deliberately ...
5 years, 7 months ago (2015-05-08 19:30:30 UTC) #83
Dan Beam
https://codereview.chromium.org/1072133006/diff/790001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/1072133006/diff/790001/content/browser/tracing/tracing_controller_impl.cc#newcode61 content/browser/tracing/tracing_controller_impl.cc:61: base::FileTracing::SetProvider(new FileTracingProviderImpl); On 2015/05/08 19:30:30, Lei Zhang wrote: > ...
5 years, 7 months ago (2015-05-08 20:52:31 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072133006/810001
5 years, 7 months ago (2015-05-08 20:54:12 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/55476)
5 years, 7 months ago (2015-05-09 05:05:16 UTC) #89
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072133006/810001
5 years, 7 months ago (2015-05-09 09:33:59 UTC) #91
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
5 years, 7 months ago (2015-05-09 13:39:39 UTC) #93
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072133006/810001
5 years, 7 months ago (2015-05-11 05:46:32 UTC) #95
commit-bot: I haz the power
Committed patchset #13 (id:810001)
5 years, 7 months ago (2015-05-11 07:54:00 UTC) #96
commit-bot: I haz the power
5 years, 7 months ago (2015-05-11 07:54:52 UTC) #97
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/492dc31b433656444c9c74213a133c19c8ebfa21
Cr-Commit-Position: refs/heads/master@{#329114}

Powered by Google App Engine
This is Rietveld 408576698