GitHub PushEvent at 2014-02-21 19:44:51
Repository: criu
Actor: xemul
Payload: {"shas":[["aaef7b7f87e959289016fe892b579b28b43389c6","7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org","Add ability to compile program with gprof output\n\nTo be able to profile CRIU with gprof support we need a special flag\npassed to the compiler and linker. But same time we can't build parasite\ncode with prof support because it'll call for mcount() service routine\nfor which we don't have any stub yet (and even if we had there are\nother tech details involved). Thus PIE code won't be profiled.\n\nTo compile with prof support make it as\n\n  make DEBUG=1 GMON=1\n\nThe idea to run gprof then over criu sources. Once you've it\ncompiled with the flags mentioned above -- simply run it (test or whatever,\nI've been running sh test/zdtm.st static.maps00).\n\nThen run gprof ./criu gmon.out\n\nNote the gmon.out file lays in directory where criu were running, thus\nin case of sh test/zdtm.st static.maps00 the output file will be in test/\ndirectory.\n\nSigned-off-by: Cyrill Gorcunov <gorcunov@openvz.org>\nAcked-by: Andrew Vagin <avagin@parallels.com>\nSigned-off-by: Pavel Emelyanov <xemul@parallels.com>","Cyrill Gorcunov",true]],"size":1,"ref":"refs/heads/master","head":"aaef7b7f87e959289016fe892b579b28b43389c6"}