Log profiler: allow overwriting data files and name them from date and pid.
authorPaolo Molaro <lupus@oddwiz.org>
Fri, 12 Nov 2010 17:22:03 +0000 (18:22 +0100)
committerPaolo Molaro <lupus@oddwiz.org>
Fri, 12 Nov 2010 20:38:04 +0000 (21:38 +0100)
commitb2d330da2b431fc091c060e6c2b58752a76e1507
tree69c6ddf07d2948174466c3c225d181509d02296b
parent1015aecfdd1bfdd393efc093e13e64d4cd4b652d
Log profiler: allow overwriting data files and name them from date and pid.

* utils.h, utils.c: added getpid() wrapper.
* decode.c: display the program pid if available.
* proflog.c: added substitutions for the output name, change the default
behaviour to not overwrite a file and allow '-' at the start of the
file name to force overwrite.
mono/profiler/decode.c
mono/profiler/log-profiler.txt
mono/profiler/proflog.c
mono/profiler/utils.c
mono/profiler/utils.h