RESOLVED FIXED 34833
Chromium DevTools: Trying to generate heap snapshots fast will generate more than expected
https://bugs.webkit.org/show_bug.cgi?id=34833
Summary Chromium DevTools: Trying to generate heap snapshots fast will generate more ...
Mikhail Naganov
Reported 2010-02-11 01:09:51 PST
What steps will reproduce the problem? 1. Open a webpage say http://www.google.com 2. Open Inspector(Ctrl+Shift+I) 3. Go to Profiles tab 4. Hit 'Take a snapshot button' fast, say 5 times What is the expected output? To see 5 snapshots What do you see instead? Around 15 snapshots are being created
Attachments
proposed fix (3.90 KB, patch)
2010-02-11 01:51 PST, Mikhail Naganov
pfeldman: review-
make privates naming consistent with WebKit style (7.16 KB, patch)
2010-02-11 02:17 PST, Mikhail Naganov
pfeldman: review+
Mikhail Naganov
Comment 1 2010-02-11 01:51:40 PST
Created attachment 48552 [details] proposed fix
Pavel Feldman
Comment 2 2010-02-11 01:58:38 PST
Comment on attachment 48552 [details] proposed fix Minor nits, otherwise r+. > + this.lastRequestedLogPosition_ = -1; this._lastRequestedLogPosition > + */ > +devtools.ProfilerAgent.prototype.getNextLogLines_ = function(immediately) > +{ "Next" does not sound well with plurals. "Further"? > + if (this.lastRequestedLogPosition_ == this.logPosition_) === Now that the files are upstream, please fix naming of private fields.
Mikhail Naganov
Comment 3 2010-02-11 02:17:28 PST
Created attachment 48554 [details] make privates naming consistent with WebKit style please don't put into cq, I'll commit myself
Mikhail Naganov
Comment 4 2010-02-11 02:21:40 PST
(In reply to comment #2) > (From update of attachment 48552 [details]) > Minor nits, otherwise r+. > > > + this.lastRequestedLogPosition_ = -1; > > this._lastRequestedLogPosition > > > + */ > > +devtools.ProfilerAgent.prototype.getNextLogLines_ = function(immediately) > > +{ > > "Next" does not sound well with plurals. "Further"? Google for "next lines". To me, it looks OK. > > > + if (this.lastRequestedLogPosition_ == this.logPosition_) > > === > > Now that the files are upstream, please fix naming of private fields. Fixed
Mikhail Naganov
Comment 5 2010-02-11 12:50:38 PST
Note You need to log in before you can comment on or make changes to this bug.