From: liudawei <dbm...@ya...> - 2007-01-07 12:04:18
|
Hi: I have encountered a problem when I use psrun to profile a Demon process and its child process is also Demon process. The example is here. Psrun -f Daemon.exe Iet me describe the how this Daemon work, I want to profile the Daemon and its child process. here, all the child process is daemon process too. The problem I encountered is that all the results(xml file produced by psrun) is zero. I try to read the source code of the psrun. I guess that psrun will fork a process to execute the program which is profiled (here is the Daemon.exe). But as we know that if the program to be profiled is daemon process, I think when the daemon process is created successfully, it will kill his father process, however, psrun is just waiting for this signal to finished the profile. so, if the Daemon is start,the psrun will stop right now. so, all the results is zero. Can any one give some suggestion? or give a patch to psrun, so let psrun can monitor daemon type program. You can download the Oracle TimesTen , then use psrun to verify the problem I encountred. Waiting for a reply. __________________________________________________ 赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.com |