WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28146
Allow Inspector's Number.toString to print low-resolution values
https://bugs.webkit.org/show_bug.cgi?id=28146
Summary
Allow Inspector's Number.toString to print low-resolution values
Mikhail Naganov
Reported
2009-08-10 07:08:37 PDT
Currently, Number.toString always prints high-resolution values in KBs and MBs (e.g. 1.234MB). My intention is to allow it to print coarse-grained values (no digits after the decimal point.)
Attachments
Proposed change
(1.79 KB, patch)
2009-08-10 07:15 PDT
,
Mikhail Naganov
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mikhail Naganov
Comment 1
2009-08-10 07:15:36 PDT
Created
attachment 34450
[details]
Proposed change
Timothy Hatcher
Comment 2
2009-08-10 09:14:23 PDT
What is the reason for this addition?
Mikhail Naganov
Comment 3
2009-08-11 00:12:19 PDT
I'm working on the heap profiling page for Chromium. I have one place where I'm displaying memory stats (as a subtitle for memory snapshot items), and there I don't need excessive precision provided by the default version of Number.bytesToString. That's why I decided to provide 'low-res' argument to it. You can check out the current look of the Heap page here:
http://build.chromium.org/buildbot/continuous/mac/2009-08-10/22915/chrome-mac.zip
As I'm planning to upstream it to WebKit some day, so let's discuss it. The current view is very simple, I have more functionality to add.
Pavel Feldman
Comment 4
2009-08-12 01:00:24 PDT
Committing to
http://svn.webkit.org/repository/webkit/trunk
... M WebCore/ChangeLog M WebCore/inspector/front-end/utilities.js Committed
r47095
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug