Instrumenting copying string returned by GetRawDataResource to locate the source...
commitcc81e8300d4e586ceddab90242a31bdf0c8a2522
authorvadimt <vadimt@chromium.org>
Tue, 4 Nov 2014 22:30:05 +0000 (4 14:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Nov 2014 22:31:03 +0000 (4 22:31 +0000)
tree4a83918e46a0f2b060f6cbbd90aa13ff67947779
parentd38ccdc3e21501cc81753431ececd0856df87f7c
Instrumenting copying string returned by GetRawDataResource to locate the source of jankiness.

Previous instrumentations showed that the jank is in this line:
*data = rb.GetRawDataResource(resource_id_).as_string();
And its average run time is 15.1 ms.
I also know that the expensive operation is outside of ResourceBundle::GetRawDataResourceForScale.
So, we have to suggest that it's indeed copying the string that is responsible for the jank.

BUG=422489

Review URL: https://codereview.chromium.org/702543005

Cr-Commit-Position: refs/heads/master@{#302686}
chrome/browser/extensions/chrome_url_request_util.cc