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

Issue 2490853002: Small tracing improvements to MHTML generation code. (Closed)

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

Description

Small tracing improvements to MHTML generation code. The main objective of this change is to add tracing to the RenderFrameImpl::OnWriteMHTMLToDiskComplete so that one can see in trace report the delay introduced by the two thread hops for doing IO in the file thread: from the "main" to the "file" and then back to "main". This lead to a few related changes: - The thread hops are avoided when not actually needed. - As a consequence the WriteMHTMLToDisk function was slightly simplified. - And a few outdated code comments were updated. BUG=645686 Committed: https://crrev.com/d9ff2b43b1dc1fba22fd16a913c979de09687223 Cr-Commit-Position: refs/heads/master@{#431027}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Adding file close call when bypassing the thread hop. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -34 lines) Patch
M content/renderer/render_frame_impl.cc View 1 6 chunks +39 lines, -34 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
carlosk
lukasza@, nasko@: PTAL.
4 years, 1 month ago (2016-11-09 02:10:27 UTC) #4
Łukasz Anforowicz
LGTM if my understanding of the change (see the comment below) is accurate. https://codereview.chromium.org/2490853002/diff/1/content/renderer/render_frame_impl.cc File ...
4 years, 1 month ago (2016-11-09 17:12:24 UTC) #8
carlosk
Thanks. https://codereview.chromium.org/2490853002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2490853002/diff/1/content/renderer/render_frame_impl.cc#newcode5431 content/renderer/render_frame_impl.cc:5431: main_thread_use_time, success); On 2016/11/09 17:12:24, Łukasz Anforowicz wrote: ...
4 years, 1 month ago (2016-11-09 18:10:32 UTC) #9
Łukasz Anforowicz
https://codereview.chromium.org/2490853002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2490853002/diff/1/content/renderer/render_frame_impl.cc#newcode5431 content/renderer/render_frame_impl.cc:5431: main_thread_use_time, success); On 2016/11/09 18:10:32, carlosk wrote: > On ...
4 years, 1 month ago (2016-11-09 18:27:27 UTC) #10
nasko
Rubberstamp LGTM based on lukasza@'s review, assuming the comment or close call are added to ...
4 years, 1 month ago (2016-11-09 18:33:17 UTC) #11
carlosk
Thanks for yet another comprehensive review Łukasz! :) https://codereview.chromium.org/2490853002/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2490853002/diff/1/content/renderer/render_frame_impl.cc#newcode5431 content/renderer/render_frame_impl.cc:5431: main_thread_use_time, ...
4 years, 1 month ago (2016-11-09 19:16:11 UTC) #12
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/2490853002/20001
4 years, 1 month ago (2016-11-09 19:17:08 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-09 20:42:47 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 21:00:12 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d9ff2b43b1dc1fba22fd16a913c979de09687223
Cr-Commit-Position: refs/heads/master@{#431027}

Powered by Google App Engine
This is Rietveld 408576698