New issue
Advanced search Search tips

Issue 669666 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Reduce NetworkInstrumentation CPU overhead per resource request

Project Member Reported by csharrison@chromium.org, Nov 29 2016

Issue description

In a recent profile of http://cr.kungfoo.net/many_resources/link_preloads.html, network instrumentation code took ~12% of the CPU time in requesting a resource, mostly in allocations/copies.

Could this be reduced? Can we incur this overhead only if we have tracing enabled?
 

Comment 1 by caseq@chromium.org, Nov 29 2016

Owner: dproy@chromium.org
Status: Assigned (was: Untriaged)
We absolutely should incur the overhead only when the trace recording is enabled. You can do this easily by following the pattern in InspectorInstrumentation.h -- basically, only create TracedValue when arguments to trace macro are being evaluated, just by extracting creation/population into the function.

That's great to hear! I am hoping to find some next next Q to write perf tests so these types of regressions will be easier to spot.

Thanks for the quick reply.

Comment 3 by dproy@chromium.org, Nov 29 2016

This is a great catch - thank you! I'll fix this asap. How did you do the profiling?
This is on my linux desktop using the linux perf tool.

Comment 5 by dproy@chromium.org, Dec 13 2016

Labels: -Type-Bug -Pri-3 Merge-Request-56 Pri-2 Type-Bug-Regression
https://codereview.chromium.org/2537143005/ fixes this. Can this be merged in M56? 

This regression was new in M56 and was introduced by https://codereview.chromium.org/2444783002/


Comment 6 by dimu@chromium.org, Dec 14 2016

Labels: -Merge-Request-56 Merge-Approved-56 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M56 (branch: 2924)
Labels: -Merge-Approved-56 Merge-Merged
Merged here: https://chromium.googlesource.com/chromium/src/+/4e24008e8258b873785bff76b3b308f31e64f33b
Status: Fixed (was: Assigned)

Sign in to add a comment