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

Issue 1870563002: Escape name and category of trace events. (Closed)

Created:
4 years, 8 months ago by Mario Pistrich
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Escape name and category of trace events. Some calls to trace an event pass a source location as name (e.g. in BeginFrameTracker::Start). On Windows, these location paths are separated by backslashes which were not escaped when saving as JSON. This lead to unparsable trace files created by chrome://tracing. R=primiano@chromium.org BUG=599176 TEST=TraceEventTestFixture.NameAndCategoryEscapedIfNeeded Committed: https://crrev.com/c3074fbaf4ed55a4ebae511cb2bc943d0af532f9 Cr-Commit-Position: refs/heads/master@{#385848}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove escaping of trace event category #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M base/trace_event/trace_event_impl.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Mario Pistrich
4 years, 8 months ago (2016-04-07 02:26:17 UTC) #1
Primiano Tucci (use gerrit)
Thanks, this makes sense. Although, can you please cover this with a test? Also you ...
4 years, 8 months ago (2016-04-07 13:30:08 UTC) #2
Mario Pistrich
On 2016/04/07 13:30:08, Primiano Tucci wrote: > Thanks, this makes sense. Although, can you please ...
4 years, 8 months ago (2016-04-07 13:50:42 UTC) #3
Mario Pistrich
https://codereview.chromium.org/1870563002/diff/1/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1870563002/diff/1/base/trace_event/trace_event_impl.cc#newcode298 base/trace_event/trace_event_impl.cc:298: EscapeJSONString(category_group_name, true, out); On 2016/04/07 13:30:08, Primiano Tucci wrote: ...
4 years, 8 months ago (2016-04-07 13:50:58 UTC) #4
Primiano Tucci (use gerrit)
Sorry I completely missed the unittests. It is fine! LGTM, just not sure if we ...
4 years, 8 months ago (2016-04-07 16:17:56 UTC) #5
Mario Pistrich
https://codereview.chromium.org/1870563002/diff/1/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1870563002/diff/1/base/trace_event/trace_event_impl.cc#newcode298 base/trace_event/trace_event_impl.cc:298: EscapeJSONString(category_group_name, true, out); On 2016/04/07 16:17:56, Primiano Tucci wrote: ...
4 years, 8 months ago (2016-04-07 18:59:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1870563002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1870563002/20001
4 years, 8 months ago (2016-04-07 19:01:13 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-07 21:07:02 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 21:09:13 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c3074fbaf4ed55a4ebae511cb2bc943d0af532f9
Cr-Commit-Position: refs/heads/master@{#385848}

Powered by Google App Engine
This is Rietveld 408576698