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

Issue 23460027: HeapProfiler: very slow ~4min "take snapshot time" for 80MB gmail heap. (Closed)

Created:
7 years, 3 months ago by loislo
Modified:
7 years, 3 months ago
Reviewers:
alph, yurys, Yang
CC:
v8-dev
Visibility:
Public.

Description

HeapProfiler: very slow ~4min "take snapshot time" for 80MB gmail heap. The reason of that is a number of cons strings in the app. The app constructs a json string and as a result v8 heap has a very long chain of cons strings. Profiler counts all these strings as plain String objects and assign the content of the strings as node names. It required O(n^2) time and O(n^2) memory. Solution: I introduced two new types, kConsString and kSliced string. They do not use the content of the string for names. So the problem disappeared. The heap profiler usability problem will be solved on Blink side. BUG=285770 R=yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16611

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -13 lines) Patch
M include/v8-profiler.h View 1 chunk +13 lines, -11 lines 0 comments Download
M src/heap-snapshot-generator.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/heap-snapshot-generator.cc View 3 chunks +14 lines, -1 line 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Yang
Having the string content appear as name seems valuable. How about setting a certain limit ...
7 years, 3 months ago (2013-09-10 08:47:56 UTC) #1
loislo
On 2013/09/10 08:47:56, Yang wrote: > Having the string content appear as name seems valuable. ...
7 years, 3 months ago (2013-09-10 08:56:29 UTC) #2
Yang
On 2013/09/10 08:56:29, loislo wrote: > On 2013/09/10 08:47:56, Yang wrote: > > Having the ...
7 years, 3 months ago (2013-09-10 09:16:44 UTC) #3
Yang
On 2013/09/10 09:16:44, Yang wrote: > On 2013/09/10 08:56:29, loislo wrote: > > On 2013/09/10 ...
7 years, 3 months ago (2013-09-10 09:32:47 UTC) #4
loislo
7 years, 3 months ago (2013-09-10 11:12:47 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 manually as r16611 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698