I had a website which was using massive amounts of memory on my MacBook but I was unable to take a screenshot of the total memory usage from Activity Monitor to file an issue with the website. Is there any way I can see the log of the Activity Monitor from a specific time?
-
1Activity Monitor doesn't keep any history.– nohillside ♦Mar 30, 2021 at 8:44
-
I tat menus does hap a graph of memory use over time– mmmmmmMar 30, 2021 at 11:49
-
Also, it's most likely to be an issue with Safari itself, rather than the website's code.– benwiggyMar 30, 2021 at 12:33
-
@benwiggy I am using Firefox and its with the Redux Essential page. I am not facing any issues with other pages just this one where it is incredibly laggy.– yudhieshMar 30, 2021 at 13:16
-
That page isn't laggy for me on Safari. It's using 'some memory', but not an inordinate amount.– benwiggyMar 30, 2021 at 14:20
3 Answers
No, Activity Monitor does not store historic information about memory usages anywhere.
The system also do not by standard log such information into log files or databases or anything like that. So the information you seek is gone now, I'm afraid.
-
I don't understand your comment. A program was running. Now it is not running. The user wants to document how much memory it used when it ran. That information is lost. You cannot record it afterwards. Mar 30, 2021 at 12:03
-
Thanks I will try checking with Firefox if it is possible as it could be a memory leak from there.– yudhieshMar 30, 2021 at 13:59
If you want to redo the issue and collect data:
Download Xcode from https://developer.apple.com
Use Instruments.app with "Activity Monitor" instrument.
Choose all processes. Hit the red button to start recording.
-
This won't work at all. You need to do this BEFORE running the program. You cannot do it afterwards. Mar 30, 2021 at 12:03
-
well, the user could visit the website again, and record the trace for the whole duration, and upload the stats in the bug report.– ankiMar 30, 2021 at 12:16
-
Well, then the user could also just take the screenshot that the original question was about :-) Mar 30, 2021 at 14:02
Could it help you?
while sleep 1s; do date; top -l 1 |grep 'PhysMem:'; done > course.log
-
This shows the memory usage for the current time. Could you change it to show the memory usage over the last day only?– yudhieshMar 30, 2021 at 13:17
-