massif

Valgrind's massif tool will not profile my application

久未见 提交于 2020-01-01 07:39:40
问题 I am developing a statically-linked 64-bit C++ application on 64-bit CentOS 5.8 using the standard gcc 4.4 packages from the CentOS repositories. It appears to be using more memory than I expected, so I tried using massif to profile the memory usage. I have compiled with debug information and then run valgrind --tool=massif ./MyProg from the directory where MyProg resides. It never produces any results other than the following massif.out.XXXX example. desc: (none) cmd: ./MyProg time_unit: i #

Why doesn't valgrind massif report any function names or code references?

喜夏-厌秋 提交于 2019-12-24 01:45:31
问题 I have a program that is unexpectedly using a large amount of heap (about 3GB). I ran it through valgrind memcheck which reported no leaks, claiming that all the heap memory is still reachable. So I rebuilt all my libraries with debug options, and ran the prog through valgrind massif. I am using Valgrind-3.8.1 which I just downloaded and built on my box today. The command line was: valgrind --tool=massif myprog Valgrind produced no errors or warnings. The resulting output file is reporting

How do I find why the virtual memory foot print continuously grows with this daemon?

跟風遠走 提交于 2019-12-23 05:04:43
问题 I created a daemon which I use as a proxy to the Cassandra database. I call it snapdbproxy as it proxies my CQL commands from my other servers and tools. Whenever I access that tool, it creates a new thread, manages various CQL commands, and then I cleanly exit the thread once the connection is lost. Looking at the memory footprint, it grows really fast (the most active systems quickly reach Gb of virtual memory and that makes use of some swap memory which grows constantly.) On startup, it is

Valgrind Massif tool output graphical interface?

旧街凉风 提交于 2019-12-17 15:12:09
问题 I'm using Valgrind 3.3.1 with the Massif tool to profile the heap of a C++ application, and I'm wondering if there is a graphical tool to examine the textual outputfile file. Thanks for any suggestion. 回答1: For anyone else who is still interested in graphical output of Massif from Valgrind please consider massif-visualizer, it is beautiful. You can find the project page at KDE-Apps. For Ubuntu you should build massif-visualizer from source or install package from Kubuntu-ppa repo: add-apt

localtime_r consuming some memory before program exit

六眼飞鱼酱① 提交于 2019-12-11 00:54:44
问题 I use valgrind's massif to track memory usage at the last stage before program exit and found js::DateTimeInfo::updateTimeZoneAdjustment() (DateTime.cpp:19) which is calling localtime_r and consuming some memory. 16 ComputeLocalTime(time_t local, struct tm *ptm) 17 { 18 #ifdef HAVE_LOCALTIME_R 19 return localtime_r(&local, ptm); 20 #else 21 struct tm *otm = localtime(&local); 22 if (!otm) ms_print of last snapshot from valgrind's massif 427711 -------------------------------------------------

Valgrind's massif tool will not profile my application

别等时光非礼了梦想. 提交于 2019-12-03 22:52:06
I am developing a statically-linked 64-bit C++ application on 64-bit CentOS 5.8 using the standard gcc 4.4 packages from the CentOS repositories. It appears to be using more memory than I expected, so I tried using massif to profile the memory usage. I have compiled with debug information and then run valgrind --tool=massif ./MyProg from the directory where MyProg resides. It never produces any results other than the following massif.out.XXXX example. desc: (none) cmd: ./MyProg time_unit: i #----------- snapshot=0 #----------- time=0 mem_heap_B=0 mem_heap_extra_B=0 mem_stacks_B=0 heap_tree

Building massif-visualizer: include could not find load file CMakeFindDependencyMacro

无人久伴 提交于 2019-11-30 09:08:07
问题 I am attempting to build massif-visualizer on CentOS 7. Unfortunately I'm having to try to guess at dependencies as they are not all listed in the INSTALL file. So far: yum install git yum install kdelibs-devel extra-cmake-modules \ qt5-qtsvg-devel qt5-qtxmlpatterns-devel \ kf5-kparts-devel kf5-karchive-devel git clone https://github.com/KDE/massif-visualizer cd massif-visualizer mkdir build (cd build && cmake .. && make && make install) Those Qt5 and KF5 packages were added to the yum

Building massif-visualizer: include could not find load file CMakeFindDependencyMacro

橙三吉。 提交于 2019-11-29 12:48:02
I am attempting to build massif-visualizer on CentOS 7. Unfortunately I'm having to try to guess at dependencies as they are not all listed in the INSTALL file. So far: yum install git yum install kdelibs-devel extra-cmake-modules \ qt5-qtsvg-devel qt5-qtxmlpatterns-devel \ kf5-kparts-devel kf5-karchive-devel git clone https://github.com/KDE/massif-visualizer cd massif-visualizer mkdir build (cd build && cmake .. && make && make install) Those Qt5 and KF5 packages were added to the yum command largely by trial and error, and some pattern-matching from CMake error messages … but I cannot seem

Valgrind Massif tool output graphical interface?

一曲冷凌霜 提交于 2019-11-27 17:14:25
I'm using Valgrind 3.3.1 with the Massif tool to profile the heap of a C++ application, and I'm wondering if there is a graphical tool to examine the textual outputfile file. Thanks for any suggestion. For anyone else who is still interested in graphical output of Massif from Valgrind please consider massif-visualizer , it is beautiful. You can find the project page at KDE-Apps . For Ubuntu you should build massif-visualizer from source or install package from Kubuntu-ppa repo: add-apt-repository ppa:kubuntu-ppa/backports apt-get update && apt-get install massif-visualizer There is a Qt