cpp gdb valgrind - memory usage statistic while app is running and valgrind unhandled syscall

此生再无相见时 提交于 2019-11-28 11:00:20

问题


1) I want to get information about memory usage while my program is running (by request). My program create session-objects on the fly and I want to get information about memory usage of all there objects. Is it possible? Seems this can be done by Valgrind. How to use it? How to run it? (commands)

2) My program is background multithread daemon (it also use Local Unix Sockets). I can not run my program under valdrind valdrind ./daemon start. I got following tons of messages:

--19454-- it at http://valgrind.org/support/bug_reports.html.
caught signal 5068246
--19454-- WARNING: unhandled syscall: 429
--19454-- You may be able to write your own handler.
--19454-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
--19454-- Nevertheless we consider this a bug.  Please report
--19454-- it at http://valgrind.org/support/bug_reports.html.
caught signal 5068246

What is the problem and how to fix it?

3) maybe there is other ways to get information about objects and memory usage by them? Maybe gdb or other tools?

ps. sorry for my english, please.

来源:https://stackoverflow.com/questions/10861384/cpp-gdb-valgrind-memory-usage-statistic-while-app-is-running-and-valgrind-unha

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!