From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c6cef329fa15b6d3,start X-Google-Attributes: gidfee84,public From: steffen@latrade.com (Steffen Ullrich) Subject: Q: getting profiling data while program is still running Date: 1996/08/30 Message-ID: <5076j6$s9t@xensei3.xensei.com>#1/1 X-Deja-AN: 177464925 sender: steffen@manta.latrade.com content-type: text/plain; charset=us-ascii organization: The Xensei Corporation mime-version: 1.0 newsgroups: comp.unix.osf.osf1 I'm in the process of profiling a huge C++ application. I used pixie/prof to get information about the calls and can extract from this report some useful information about the number of objects created (simple counting the constructors). unfortunatly I get these information only at the end of the program, but I really like to make a dump from the current state, to see how many objects from a specific type are currently in use (e.g. subtract the number of desctructor calls from the constructor calls). What I've found is monitor_signal(3) but it looks like this is only working for PC-Sampling and not for basic Block Counting. Is there any other function which I could simply use as a signal handler for dumping the .Counts file? Or does anybody has other ideas how to manage this kind of task (counters in the constructors/destructors is unpossible, there are way to many classes involved)