Closed
Bug 1195232
Opened 9 years ago
Closed 9 years ago
Stop using TracingMetadata from GeckoProfiler.h
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
DevTools
Performance Tools (Profiler/Timeline)
Tracking
(firefox43 fixed)
RESOLVED
FIXED
Firefox 43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: vporof, Assigned: vporof)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
tromey
:
review+
|
Details | Diff | Splinter Review |
It's just an enum, with some fields we don't even need. There's no reason to include/reuse it everywhere.
Assignee | ||
Updated•9 years ago
|
Blocks: otmt-markers
Assignee | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Comment on attachment 8649955 [details] [diff] [review]
v1
Review of attachment 8649955 [details] [diff] [review]:
-----------------------------------------------------------------
The patch overall looks good. However I am going to r- it for now because it is missing a crucial file.
From the way the code is written I'm going to guess that the new enum is not an "enum class". I think the class form is generally preferable in new code because it introduces a new name space and thus avoids possible name clashes. So I would recommend this; though unfortunately it means another pass through all the files. Another equivalent approach would be to make the non-class enum a member of TimelineMarker.
Also, could you see if nsDocShell.h can now drop the GeckoProfiler.h include? I vaguely recall that the enum was the only reason for this, but I'm not certain.
::: docshell/base/timeline/TimelineMarker.h
@@ +8,5 @@
> #define mozilla_TimelineMarker_h_
>
> #include "nsString.h"
> #include "nsContentUtils.h"
> +#include "TimelineMarkerEnums.h"
This file is missing from the patch.
Attachment #8649955 -
Flags: review?(ttromey) → review-
Assignee | ||
Comment 3•9 years ago
|
||
>
> ::: docshell/base/timeline/TimelineMarker.h
> @@ +8,5 @@
> > #define mozilla_TimelineMarker_h_
> >
> > #include "nsString.h"
> > #include "nsContentUtils.h"
> > +#include "TimelineMarkerEnums.h"
>
> This file is missing from the patch.
OOOPS
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8649974 -
Flags: review?(ttromey)
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8649955 [details] [diff] [review]
v1
Mechanical change.
Attachment #8649955 -
Attachment is obsolete: true
Comment 6•9 years ago
|
||
Comment on attachment 8649974 [details] [diff] [review]
v2
Review of attachment 8649974 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks.
::: dom/base/Console.cpp
@@ +1105,5 @@
> nsAutoJSString key;
> if (key.init(aCx, jsString)) {
> mozilla::UniquePtr<TimelineMarker> marker =
> + MakeUnique<ConsoleTimelineMarker>(key, aMethodName == MethodTime
> + ? MarkerTracingType::START
Splinter shows some trailing whitespace on these two lines.
Attachment #8649974 -
Flags: review?(ttromey) → review+
Comment 8•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•