aboutsummaryrefslogtreecommitdiffstats
path: root/src/profiler.c
diff options
context:
space:
mode:
authorKen Brown2015-06-22 17:38:35 -0400
committerKen Brown2015-06-22 17:38:35 -0400
commit531125e4c024ca12701608c4516cb9cf993cfad2 (patch)
treec477e5b6b4a9e1e429f9f2bdf0a2d0f8f8a3144b /src/profiler.c
parentdc30fb9247d5d9d98ae1c3501d3ffa90e2001a46 (diff)
downloademacs-531125e4c024ca12701608c4516cb9cf993cfad2.tar.gz
emacs-531125e4c024ca12701608c4516cb9cf993cfad2.zip
Enable CPU profiling on Cygwin
* src/syssignal.h [CYGWIN] (PROFILER_CPU_SUPPORT): Revert previous change that undefined this. (SIGEV_SIGNAL): Ensure that this is defined as a macro. * src/profiler.c [CYGWIN] (timer_getoverrun): Define as a macro on Cygwin.
Diffstat (limited to 'src/profiler.c')
-rw-r--r--src/profiler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/profiler.c b/src/profiler.c
index 185382c5bd8..d4c98a82657 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -217,6 +217,12 @@ static EMACS_INT current_sampling_interval;
217 217
218/* Signal handler for sampling profiler. */ 218/* Signal handler for sampling profiler. */
219 219
220/* timer_getoverrun is not implemented on Cygwin, but the following
221 seems to be good enough for profiling. */
222#ifdef CYGWIN
223#define timer_getoverrun(x) 0
224#endif
225
220static void 226static void
221handle_profiler_signal (int signal) 227handle_profiler_signal (int signal)
222{ 228{