Questions tagged [memory-profiling]
337 questions
310
votes
5 answers
Find out how much memory is being used by an object in Python
How would you go about finding out how much memory is being used by an object? I know it is possible to find out how much is used by a block of code, but not by an instantiated object (anytime during its life), which is what I want.

dwestbrook
- 5,108
- 3
- 25
- 20
75
votes
4 answers
How do I use a dump file to diagnose a memory leak?
I have a .NET service with a normal private working set of about 80 MB. During a recent load test, the process reached 3.5 GB memory usage causing the whole machine to be low on physical memory (3.9 of 4 GB used), and the memory was not released…

Allon Guralnek
- 15,813
- 6
- 60
- 93
53
votes
9 answers
.NET Memory Profiling Tools
Possible Duplicate:
What Are Some Good .NET Profilers?
I am on the lookout for good .NET CLR memory profiling tools.
My key requirement is that it will play well with IIS and standalone CLR Apps. Ideally I would see what objects are allocated,…

nick_alot
- 2,982
- 5
- 30
- 32
35
votes
3 answers
Is there any working memory profiler for Python3
In Python 2 there's a couple of tools but everything seems to be old and out-of-dated.
I've found PySizer and Heapy but everything seems to be Python2 oriented and would take a lot of effort to port.
objgraph is interesting but still not a fully…

Mathieu Leduc-Hamel
- 390
- 1
- 3
- 6
32
votes
2 answers
Memory profiling in R - tools for summarizing
R has some tools for memory profiling, like Rprofmem(), Rprof() with option "memory.profiling=TRUE" and tracemem(). The last one can only be used on objects, and hence is useful to follow how many times an object is copied, but doesn't give an…

Joris Meys
- 106,551
- 31
- 221
- 263
30
votes
5 answers
Programmatically get memory usage in Chrome
How can I programmatically get memory usage (JS and total) of my website in Google Chrome?
I looked at doing it from a Chrome extension using the undocumented HeapProfiler (see here), but I can't find a way to get data from that.
I want to measure…

Paul Draper
- 78,542
- 46
- 206
- 285
29
votes
3 answers
Code profiling for Shiny app?
For an R Shiny web app, what are some good ways to run code profiling that show the parts of the Shiny code that are taking the most processing time?
I've got a big, fat, complex Shiny app, and I'd like to figure out where in this labyrinth of code…

canary_in_the_data_mine
- 2,193
- 2
- 24
- 28
28
votes
2 answers
What is "Document count" counter in Timeline tab of Chrome Dev Toolbar?
Could someone explain me what does 'Document count' counter stands for in Timeline tab of Chrome Dev Toolbar?
In my application I'm using iframes and navigate within a set of pages in one of them. Currently 'Document count' counter shows me a range…

Andrey
- 5,906
- 4
- 24
- 30
21
votes
1 answer
How to profile multiple subprocesses using Python multiprocessing and memory_profiler?
I have a utility that spawns multiple workers using the Python multiprocessing module, and I'd like to be able to track their memory usage via the excellent memory_profiler utility, which does everything I want - particularly sampling memory usage…

bbengfort
- 5,254
- 4
- 44
- 57
20
votes
1 answer
Memory profiler for numpy
I have a numpy script that -- according to top -- is using about 5GB of RAM:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16994 aix 25 0 5813m 5.2g 5.1g S 0.0 22.1 52:19.66 ipython
Is there a memory profiler that would…

NPE
- 486,780
- 108
- 951
- 1,012
18
votes
2 answers
Setting pointers to nil to prevent memory leak in Golang
I'm learning Go, and as an exercise I wanted to implement a linked list. For reference I looked at the official Go code (https://golang.org/src/container/list/list.go) . One thing that stuck with me are these lines:
108 // remove removes e from…

synepis
- 1,292
- 16
- 28
15
votes
1 answer
VS2013: Memory profiler doesn't show anything on a specific project
I want to use the memory profiler of the visual studio 2013 ultimate for profiling a WPF application.
But there seems to be a problem: After running the profiler there is no data available/showed.
I use Windows 8.1 x64
I get this error:
DA0002: It…

Rul3r
- 526
- 6
- 14
13
votes
0 answers
How to profile and measure C#/C++/Java code performance with VSCode?
I have searched somewhat within VSCode extensions, plugins, googled, but nothing seems to give me similar tool as standard VS provides.
There is a whole list of code profilers for the big VS, (only .NET and managed c++)..
With the 'real'…

Sold Out
- 1,321
- 14
- 34
13
votes
2 answers
Advanced debugging advice in WPF GarbageCollection
Situation
We are running a large WPF application which does not release memory for quite some time. It is not a real memory leak, as the memory will be released eventually. I know that normally, this would not be considered to be a problem.…

el-duderino
- 133
- 7
13
votes
3 answers
What do the fields of Ruby's GC.stat mean?
I am using GC.stat to profile memory usage in our Rails app. GC.stat returns a hash with the following keys:
:count
:heap_used
:heap_length
:heap_increment
:heap_live_num
:heap_free_num
:heap_final_num
Does anybody know exactly what these values…

Amar Pai
- 131
- 1
- 4