Closed GoogleCodeExporter closed 9 years ago
Maybe this patch will be better
Include function CpuProfilerSwitch by #ifdef __GUNC__ and #endif
Original comment by qifa.z...@gmail.com
on 27 Jul 2012 at 6:21
Attachments:
Original comment by chapp...@gmail.com
on 3 Nov 2012 at 4:54
Accepted the patch with a bit of rework on my behalf :)
r182 | chappedm@gmail.com | 2012-11-04 23:45:01 -0500 (Sun, 04 Nov 2012) | 8
lines
issue-452: Adds a control mechanism to the cpu profiler to be switched on and
off using a user defined signal.
CPUPROFILESIGNAL - Takes a signal number between the value of 1 and 64
inclusive which represents a signal number as defined by signal.h. The signal
must not be in use by the program. Sending this signal to the program turns
profiling on and off like a switch. By default the switch is off when the
program starts. Successive profiles are suffixed with a monotonically
increasing number.
Original comment by chapp...@gmail.com
on 5 Nov 2012 at 4:47
Original issue reported on code.google.com by
qifa.z...@gmail.com
on 25 Jul 2012 at 3:46Attachments: