From: Tobias P. <tob...@gm...> - 2007-04-20 12:51:34
|
hi, is there some way to use gprof on a fuse filesystem when running it in foreground ? I've compiled my fs with -pg but it doesn't create a gmon.out file. I suppose this might be, because gprof can't handle the threads? In that case there should however be at least a report on the main function (even if that obviously isn't very exciting..) regards, Tobi |
From: Phil S. <psn...@cs...> - 2007-04-20 12:58:37
|
On Fri, Apr 20, 2007 at 02:51:47PM +0200, Tobias Pflug wrote: > is there some way to use gprof on a fuse filesystem when running > it in foreground ? I've compiled my fs with -pg but it doesn't create a > gmon.out file. I suppose this might be, because gprof can't handle the > threads? In that case there should however be at least a report on the > main function (even if that obviously isn't very exciting..) Just a shot in the dark, libfuse does a chdir("/") (or similar) before starting to process filesystem events. AFAIK gmon.out is produced just before the process exits, so maybe it is in / ? --Phil -- Phil Snowberger -- psn...@cs... Department of Computer Science and Engineering University of Notre Dame |
From: Tobias P. <tob...@gm...> - 2007-04-20 13:01:55
|
On Fri, 2007-04-20 at 08:58 -0400, Phil Snowberger wrote: > On Fri, Apr 20, 2007 at 02:51:47PM +0200, Tobias Pflug wrote: > > is there some way to use gprof on a fuse filesystem when running > > it in foreground ? I've compiled my fs with -pg but it doesn't create a > > gmon.out file. I suppose this might be, because gprof can't handle the > > threads? In that case there should however be at least a report on the > > main function (even if that obviously isn't very exciting..) > > Just a shot in the dark, libfuse does a chdir("/") (or similar) before > starting to process filesystem events. AFAIK gmon.out is produced just > before the process exits, so maybe it is in / ? > > --Phil > indeed, thanks :) |