|
|
Created:
6 years, 6 months ago by Dai Mikurube (NOT FULLTIME) Modified:
6 years, 4 months ago CC:
chromium-reviews, telemetry+watch_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionMake timeline_data indented JSON.
BUG=None
TEST=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289028
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : rebased #Patch Set 4 : indent=4 everywhere #Patch Set 5 : empty line: ready #
Total comments: 3
Patch Set 6 : always indent=4 #
Messages
Total messages: 25 (0 generated)
Hi nednguyen, Could you ptal?
On 2014/06/06 07:16:05, Dai Mikurube wrote: > Hi nednguyen, > > Could you ptal? Oopss. I only know about this patch when I open my chromium account. :-( Will review this as soon as possible.
lgtm Thanks for this patch. I always want to do this for such a long time. https://codereview.chromium.org/315393004/diff/20001/tools/telemetry/telemetr... File tools/telemetry/telemetry/core/backends/chrome/tracing_timeline_data.py (right): https://codereview.chromium.org/315393004/diff/20001/tools/telemetry/telemetr... tools/telemetry/telemetry/core/backends/chrome/tracing_timeline_data.py:19: def Serialize(self, f, indent=None): Can we set the default value of "indent" to 4?
Thanks, Ned. Ah, sorry, I'll use your @google.com from the next time. Committing! https://codereview.chromium.org/315393004/diff/20001/tools/telemetry/telemetr... File tools/telemetry/telemetry/core/backends/chrome/tracing_timeline_data.py (right): https://codereview.chromium.org/315393004/diff/20001/tools/telemetry/telemetr... tools/telemetry/telemetry/core/backends/chrome/tracing_timeline_data.py:19: def Serialize(self, f, indent=None): On 2014/07/21 19:51:34, nednguyen wrote: > Can we set the default value of "indent" to 4? Done.
The CQ bit was checked by dmikurube@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/315393004/80001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_...) win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/buil...) win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/buil...)
The CQ bit was checked by dmikurube@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/315393004/80001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/buil...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/buil...)
The CQ bit was checked by dmikurube@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/315393004/80001
The CQ bit was unchecked by nednguyen@google.com
Sorry, a few more comments after rebasing. https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... File tools/telemetry/telemetry/timeline/timeline_data.py (right): https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... tools/telemetry/telemetry/timeline/timeline_data.py:9: def Serialize(self, f, indent=4): I don't like this indent param in the Serialize() method of TimelineData abstract interface. This would make no sense if the underlined data is not json-compatible. Can we simplify the whole situation by always indenting the json file with indent=4? https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... File tools/telemetry/telemetry/web_perf/timeline_based_measurement.py (right): https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... tools/telemetry/telemetry/web_perf/timeline_based_measurement.py:154: help=('Indent to save the trace after the run.')) Can you default this to 4 too?
https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... File tools/telemetry/telemetry/timeline/timeline_data.py (right): https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... tools/telemetry/telemetry/timeline/timeline_data.py:9: def Serialize(self, f, indent=4): On 2014/07/22 15:34:25, nednguyen wrote: > I don't like this indent param in the Serialize() method of TimelineData > abstract interface. This would make no sense if the underlined data is not > json-compatible. > > Can we simplify the whole situation by always indenting the json file with > indent=4? I'm okay with always indent=4, but I'm worried that it would make dumped json files very large. Isn't it a problem for you and other users?
On 2014/07/23 04:59:06, Dai Mikurube wrote: > https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... > File tools/telemetry/telemetry/timeline/timeline_data.py (right): > > https://codereview.chromium.org/315393004/diff/80001/tools/telemetry/telemetr... > tools/telemetry/telemetry/timeline/timeline_data.py:9: def Serialize(self, f, > indent=4): > On 2014/07/22 15:34:25, nednguyen wrote: > > I don't like this indent param in the Serialize() method of TimelineData > > abstract interface. This would make no sense if the underlined data is not > > json-compatible. > > > > Can we simplify the whole situation by always indenting the json file with > > indent=4? > > I'm okay with always indent=4, but I'm worried that it would make dumped json > files very large. Isn't it a problem for you and other users? Most people still need to prettify the json file to analyze it anyway, so let just go ahead and do it. If someone complains, we can always add a method like to SerializeAsJson(f, indent) to json-compatible timelinedata classes.
Sorry that I forgot it. Made it always indent=4.
On 2014/08/12 08:26:10, Dai Mikurube wrote: > Sorry that I forgot it. Made it always indent=4. lgtm again. thanks
The CQ bit was checked by nednguyen@google.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmikurube@chromium.org/315393004/100001
Message was sent while issue was closed.
Change committed as 289028 |