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

Issue 2344153003: Adds tracing to MHTML generation call chain. (Closed)

Created:
4 years, 3 months ago by carlosk
Modified:
4 years, 3 months ago
CC:
asanka, blink-reviews, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, jam, kinuko+watch, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds tracing to MHTML generation call chain. This change adds tracing macro calls to many points of the MHTML generation code over browser and renderer code, both in content and Blink. These traces should help with futher performance investigations. A new trace category was created: page-serialization. I don't expect it to generate much noise so I left is as default-enabled. I also kept the name not MHTML specific as part of the renderer code seems to be intended to be more generic. BUG=645686 Committed: https://crrev.com/f86fb54ec35e00f6b5b744ddd35dc19049caae7c Cr-Commit-Position: refs/heads/master@{#420104}

Patch Set 1 : Adds tracing to MHTML generation call chain. #

Patch Set 2 : Fix build error due to an ambiguous trace function. #

Patch Set 3 : Fixed build error due to trace string argument not being correctly handled. #

Total comments: 10

Patch Set 4 : Address code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -14 lines) Patch
M content/browser/download/mhtml_generation_manager.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/download/mhtml_generation_manager.cc View 1 2 3 6 chunks +26 lines, -8 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 5 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameSerializer.cpp View 5 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 1 6 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (28 generated)
carlosk
rdsmith@chromium.org: PTAL at mhtml file. esprehn@chromium.org: PTAL at renderer and Blink files.
4 years, 3 months ago (2016-09-16 22:52:55 UTC) #11
Łukasz Anforowicz
Drive-by comments from somebody who happened to touch mhtml_generation_manager.cc some time ago. nit for CL ...
4 years, 3 months ago (2016-09-20 22:44:59 UTC) #26
esprehn
lgtm w/ nits https://codereview.chromium.org/2344153003/diff/100001/content/browser/download/mhtml_generation_manager.cc File content/browser/download/mhtml_generation_manager.cc (right): https://codereview.chromium.org/2344153003/diff/100001/content/browser/download/mhtml_generation_manager.cc#newcode226 content/browser/download/mhtml_generation_manager.cc:226: rfh->Send(new FrameMsg_SerializeAsMHTML(rfh->GetRoutingID(), ipc_params)); we really need ...
4 years, 3 months ago (2016-09-21 00:14:58 UTC) #27
Randy Smith (Not in Mondays)
mhtml_generation_manager.cc LGTM, but I encourage you to address Lukasz' comments (he's dealt with the code ...
4 years, 3 months ago (2016-09-21 16:15:58 UTC) #28
carlosk
Thanks for all reviews. https://codereview.chromium.org/2344153003/diff/100001/content/browser/download/mhtml_generation_manager.cc File content/browser/download/mhtml_generation_manager.cc (right): https://codereview.chromium.org/2344153003/diff/100001/content/browser/download/mhtml_generation_manager.cc#newcode226 content/browser/download/mhtml_generation_manager.cc:226: rfh->Send(new FrameMsg_SerializeAsMHTML(rfh->GetRoutingID(), ipc_params)); On 2016/09/21 ...
4 years, 3 months ago (2016-09-21 16:47:20 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344153003/120001
4 years, 3 months ago (2016-09-21 16:48:40 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 3 months ago (2016-09-21 18:12:52 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 18:14:24 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f86fb54ec35e00f6b5b744ddd35dc19049caae7c
Cr-Commit-Position: refs/heads/master@{#420104}

Powered by Google App Engine
This is Rietveld 408576698