|
From: Josef W. <Jos...@gm...> - 2009-06-01 18:45:24
|
On Monday 01 June 2009, Sitos Lin wrote: > Dear all: > The valgrind tool can instrument the program at the beginning of > execution by the command: valgrind .... However, how can I instrument > the running program? Because I want to skip the initialization phase > of the program and only profile the main function of the program by > valgrind tool. I know Pin can instrument the running program with a > specific pid. Can valgrind do this? Thank you. Valgrind can not attach to a running program. However, the Callgrind tool allows to start a program doing no instrumentation at all, leading to a slowdown factor of "only" around 2-3, and you can switch to full instrumentation later on. No idea if that is enough for you or not. Josef > Best regards, > sitos > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |