memory-profiling

Dispose StreamResourceInfo.Stream

蓝咒 提交于 2019-12-22 05:23:31
问题 I use StreamResourceInfo.Stream to get BitmapImage s from resources. Is it correct to Close and Dispose the stream after using it? I ask because in memory profiler, I get an error if I do so. Memory profiler says that a disposed instance has not been GCed. If I look on the web, I only can find this post to this topic. In this post, the responding person says, that it is meaninfull to dispose. However if I look at the circumstances and on the effect, I don't think that this is right. Does

Interpretation of memory profiling output of `Rprof`

狂风中的少年 提交于 2019-12-20 03:43:09
问题 I am trying use profiling to see which part of my code is reposponsible for the maximum usage of 3GB of memory (as reported by gc() statistic on maximum used memory, see here how). I am running memory profiling like this: Rprof(line.profiling = TRUE, memory.profiling = TRUE) graf(...) # ... here I run the profiled code Rprof(NULL) summaryRprof(lines = "both", memory = "both") And the output is the following: $by.total total.time total.pct mem.total self.time self.pct "graf" 299.12 99.69 50814

Using VADump to track memory usage - OpenProcess Failed c0000034

让人想犯罪 __ 提交于 2019-12-19 04:14:35
问题 After reading an article in the most recent issue of MSDN magazine, I wanted to try using VADump to break down the memory usage of some applications I've written. The only copy of the executable on my PC is at: c:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\winnt\vadump.exe No matter what combination of arguments I give VADump, it gives back the error: OpenProcess Failed c0000034 Googling for this turns up a few others who've had the same issue, but none of these posts had

Memory profiler for numpy

独自空忆成欢 提交于 2019-12-17 18:34:56
问题 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 enable me to get some idea about the objects that are taking most of that memory? I've tried heapy , but guppy.hpy().heap() is giving me this: Partition of a set of 90956 objects. Total size = 12511160 bytes. Index Count % Size % Cumulative % Kind (class / dict of

Is there any working memory profiler for Python3 [closed]

好久不见. 提交于 2019-12-17 10:52:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . 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 working profiler Which tool are using ? 回答1: Pympler is a Python

Large unexplained memory in the memory dump of a .NET process

送分小仙女□ 提交于 2019-12-14 01:44:37
问题 I can't explain most of the memory used by a C# process. The total memory is 10 GB, but the total reachable and unreachable objects altogether total 2.5 GB. I wonder what these 7.5 GB could be? I'm looking for the most likely explanations or a method to find out what this memory can be. Here is the precise situation. The process is .NET 4.5.1. It downloads pages from internet and process them with machine learning. The memory is almost entirely in the Managed Heap as shown by VMMap. This

Tracking down the source of .NET 4.0 Induced GC

为君一笑 提交于 2019-12-12 16:19:37
问题 I'm using PerfMonitor.exe ( http://bcl.codeplex.com/wikipage?title=PerfMonitor ) to track down some .NET performance issues of a .NET 4.0 app that uses some third party libraries some of which are native code. When I run the Perfmonitor GCTime report, it lists the individual GC's and classifies them in several ways. One column in the report is called "Reason". Some GC's have Reason="Induced" and others have Reason="SmallAlloc". I assume that the GCs labelled "SmallAlloc" are caused by regular

Strange increment value reported during IPython memory profiling

百般思念 提交于 2019-12-12 10:54:36
问题 While checking Jake van der Plas' "Python Data Science Handbook", I was recreating the usage examples of various debugging and profiling tools. He provides an example for demonstrating %mprun with the following function: def sum_of_lists(N): total = 0 for i in range(5): L = [j ^ (j >> i) for j in range(N)] total += sum(L) del L return total I proceeded to execute it in a Jupyter notebook, and got the following output: Line # Mem usage Increment Line Contents ==================================

Set tracking traits of template class in boost serialization to reduce memory consumption

时光毁灭记忆、已成空白 提交于 2019-12-12 08:17:26
问题 As this link stated for defining traits for a template class we should define it manually or we extract our class from the trait class. But I want to make this process automatically, for this reason inspired from BOOST_CLASS_TRACKING I wrote the blow code: #include<boost/preprocessor/tuple/enum.hpp> ... #define FOO_CLASS_TRACKING(E, PARAMETER_TUPLE, ...) \ namespace boost { \ namespace serialization { \ template<BOOST_PP_TUPLE_ENUM(PARAMETER_TUPLE)> \ struct tracking_level< __VA_ARGS__ > \ {

Which .NET performance and/or memory profilers will allow me to profile a DLL?

江枫思渺然 提交于 2019-12-12 04:28:13
问题 I write a lot of .NET based plug-ins for other programs which are usually compiled as a DLL which is up to the native application to start up. I've been using Equatec's profiler, which works great, but now would like something with more features, including the ability to profile memory usage. I tried out Red Gate's Ant Profiler, but as far as I can see there is no way to profile a DLL. The only option is to profile an EXE. So my question is what other profiling tools are available that will