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

Issue 17642009: CPUProfiler: propagate scriptId to the front-end (Closed)

Created:
7 years, 6 months ago by loislo
Modified:
7 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

CPUProfiler: propagate scriptId to the front-end Each CpuProfileNode has resource_name string property. It cost us N * strlen(resource_name) where N is number of functions in the collected profile. We could transfer script_id instead of resource_name so it would reduce transfer size and help us to solve the problem with evals and sourceURL. BUG=none TEST=test-cpu-profiler/CollectCpuProfile R=jkummerow@chromium.org, yurys@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15429 Committed: https://code.google.com/p/v8/source/detail?r=15433

Patch Set 1 #

Patch Set 2 : with test #

Patch Set 3 : unnecessary line was removed #

Total comments: 5

Patch Set 4 : completely reworked #

Total comments: 4

Patch Set 5 : comments addressed #

Patch Set 6 : debug build was fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -7 lines) Patch
M include/v8-profiler.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M src/cpu-profiler.cc View 1 2 3 4 5 2 chunks +14 lines, -6 lines 0 comments Download
M src/profile-generator.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M src/profile-generator.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/profile-generator-inl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-profile-generator.cc View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
loislo
7 years, 6 months ago (2013-06-25 07:57:20 UTC) #1
yurys
https://codereview.chromium.org/17642009/diff/4001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/17642009/diff/4001/include/v8-profiler.h#newcode79 include/v8-profiler.h:79: int GetScriptId() const; In v8.h Script::Id returns v8::Local<v8::Value> and ...
7 years, 6 months ago (2013-06-25 09:16:54 UTC) #2
loislo
On 2013/06/25 09:16:54, Yury Semikhatsky wrote: > https://codereview.chromium.org/17642009/diff/4001/include/v8-profiler.h > File include/v8-profiler.h (right): > > https://codereview.chromium.org/17642009/diff/4001/include/v8-profiler.h#newcode79 ...
7 years, 5 months ago (2013-07-01 12:22:05 UTC) #3
Jakob Kummerow
Superficially LGTM; I'll let Yury decide if this is the right approach.
7 years, 5 months ago (2013-07-01 12:35:22 UTC) #4
yurys
lgtm https://codereview.chromium.org/17642009/diff/11001/test/cctest/test-profile-generator.cc File test/cctest/test-profile-generator.cc (right): https://codereview.chromium.org/17642009/diff/11001/test/cctest/test-profile-generator.cc#newcode912 test/cctest/test-profile-generator.cc:912: // don't appear in the stack trace. I ...
7 years, 5 months ago (2013-07-01 14:50:00 UTC) #5
loislo
Committed patchset #5 manually as r15429 (presubmit successful).
7 years, 5 months ago (2013-07-01 15:16:09 UTC) #6
loislo
7 years, 5 months ago (2013-07-02 06:14:11 UTC) #7
Message was sent while issue was closed.
Committed patchset #6 manually as r15433 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698