New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 765998 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Crome --enable-precise-memory-info doesn't work and performance.memory is still bucketized

Reported by 012alex...@gmail.com, Sep 17 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
The problem description with all the steps and screen-shots can be found here: https://stackoverflow.com/questions/46264685/crome-enable-precise-memory-info-doesnt-work-and-performance-memory-is-still
1. Following Chromium Command Line Switches Documentation I ran Chrome with --enable-precise-memory-info flag
2. Then in the opened Chrome instance I tried to check value of window.performance.memory.usedJSHeapSize
3. I execute th following code in console to use more memory:
for(let i=0;i<100000;i++) {a.push('sdftgkljhghertyukytedtreut56ytirty7uikty' +i)}
4. looks like inspite of --enable-precise-memory-info flag this info is still bucketized - the value of window.performance.memory stays the same.
5. in Chrome Task Manager (Shift + Esc) I see that memory usage is grows up by about 1 Mb after each execution of:
for(let i=0;i<100000;i++) {a.push('sdftgkljhghertyukytedtreut56ytirty7uikty' +i)}

What is the expected behavior?
I expect window.performance.memory value to change after each execution of:
for(let i=0;i<100000;i++) {a.push('sdftgkljhghertyukytedtreut56ytirty7uikty' +i)}

What went wrong?
The value of window.performance.memory stays the same, while Chrome Task Manager indicates memory usage growth

Did this work before? N/A 

Chrome version: 60.0.3112.113  Channel: n/a
OS Version: 10.0
Flash Version:
 
st_ovf_img1.jpg
20.8 KB View Download
st_ovf_img2.jpg
53.4 KB View Download
Components: -Blink Blink>PerformanceAPIs
Do you launch new instance of Chrome with `--enable-precise-memory-info` flag when an instance of Chrome is open?
I closed all the instances and even checked in Task Manager that there is no any Chrome process running. But I still see the same behavior.
Labels: Needs-Bisect Needs-Triage-M61

Comment 5 by hdodda@chromium.org, Sep 19 2017

Cc: hdodda@chromium.org
Labels: Needs-Feedback
Tested the issue on windows 10 & 7 using latest stable M61 #61.0.3163.91 and M63 #63.0.3218.0  and followed the steps mentioned in comment #0.:

In step 3 , after executing the command , error msg is seen ... attached screencast for reference.

@012alex012-- Could you please try in latest stable and if you can still sble to repro the issue , please help us in reproducing the issue   on checking the attached screencast.

Thanks!
765998.mp4
1.7 MB View Download
Labels: -Needs-Feedback
hdodda@, please define 'a=[];' in the console before executing step #3.
You should first to initiate a by: `var a=[]` (please check the link to the StackOverflow I've published when opened the issue). Otherwise a === undefined.
On same computer I've install an additional version of Chrome (this time Dev).

It perfectly works in the new version, but still doesn't work in the previous one.

I am attaching screen-shots from these test I did right now.


st_ovf_img3.jpg
69.7 KB View Download
st_ovf_img4.jpg
73.3 KB View Download
Looks like the "problematic" version just allocates a lot of memory as usedJSHeapSize in advance.
Any chance `--enable-precise-memory-info` flag works only for Chrome with Dev Channel?
I can't anything saying that in the documentation I used: https://peter.sh/experiments/chromium-command-line-switches/

But maybe it's needed just like `processes` permission in extensions can be applied only for Chrome with Dev Channel. This permission (`processes`) is needed in extension to be able to add listener onUpdatedWithMemory (chrome.processes.onUpdatedWithMemory.addListener).
Cc: krajshree@chromium.org
Labels: -Needs-Bisect Needs-Feedback
Unable to reproduce the issue on Win-7 and Win-10 using chrome reported version #60.0.3112.113, latest stable #61.0.3163.91, latest dev #63.0.3218.0 and latest canary #63.0.3219.0.

Attached a screen shots for reference.

Following are the steps followed to reproduce the issue.
------------
1. Launched chrome with flag --enable-precise-memory-info.
2. Opened dev tools console and ran command window.performance.memory.usedJSHeapSize (as per comment #8)
3. Observed that usedJSHeapSize value changed every time and Chrome Task Manager also indicated less memory usage growth.

Reporter@ - Could you please check this issue on latest stable #61.0.3163.91 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Removing the Needs-Bisect label as of now as it doesn't seems to be reproducible from TE-end. Please feel free to add the same if reproducible.

Thanks...!!
765998@60.0.3112.113.JPG
168 KB View Download
765998@61.0.3163.91.JPG
166 KB View Download
765998@63.0.3218.0.JPG
163 KB View Download
Status: WontFix (was: Unconfirmed)
Marking WontFix based on #11. Please comment if the issue persists in Canary.
BTW the memory value updates in 20min intervals, not immediately.

Sign in to add a comment