diff options
| author | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2017-02-12 10:59:03 +0000 |
| commit | f4d5b687150810129b7a1d5b006e31ccf82b691b (patch) | |
| tree | 4229b13800349032697daae3904dc3773e6b7a80 /src/profiler.c | |
| parent | d5514332d4a6092673ce1f78fadcae0c57f7be64 (diff) | |
| parent | 148100d98319499f0ac6f57b8be08cbd14884a5c (diff) | |
| download | emacs-comment-cache.tar.gz emacs-comment-cache.zip | |
Merge branch 'master' into comment-cachecomment-cache
Diffstat (limited to 'src/profiler.c')
| -rw-r--r-- | src/profiler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profiler.c b/src/profiler.c index efc0cb316fc..a223a7e7c07 100644 --- a/src/profiler.c +++ b/src/profiler.c | |||
| @@ -48,7 +48,7 @@ make_log (EMACS_INT heap_size, EMACS_INT max_stack_depth) | |||
| 48 | make_number (heap_size), | 48 | make_number (heap_size), |
| 49 | make_float (DEFAULT_REHASH_SIZE), | 49 | make_float (DEFAULT_REHASH_SIZE), |
| 50 | make_float (DEFAULT_REHASH_THRESHOLD), | 50 | make_float (DEFAULT_REHASH_THRESHOLD), |
| 51 | Qnil); | 51 | Qnil, Qnil); |
| 52 | struct Lisp_Hash_Table *h = XHASH_TABLE (log); | 52 | struct Lisp_Hash_Table *h = XHASH_TABLE (log); |
| 53 | 53 | ||
| 54 | /* What is special about our hash-tables is that the keys are pre-filled | 54 | /* What is special about our hash-tables is that the keys are pre-filled |
| @@ -174,8 +174,8 @@ record_backtrace (log_t *log, EMACS_INT count) | |||
| 174 | some global flag so that some Elisp code can offload its | 174 | some global flag so that some Elisp code can offload its |
| 175 | data elsewhere, so as to avoid the eviction code. | 175 | data elsewhere, so as to avoid the eviction code. |
| 176 | There are 2 ways to do that, AFAICT: | 176 | There are 2 ways to do that, AFAICT: |
| 177 | - Set a flag checked in QUIT, such that QUIT can then call | 177 | - Set a flag checked in maybe_quit, such that maybe_quit can then |
| 178 | Fprofiler_cpu_log and stash the full log for later use. | 178 | call Fprofiler_cpu_log and stash the full log for later use. |
| 179 | - Set a flag check in post-gc-hook, so that Elisp code can call | 179 | - Set a flag check in post-gc-hook, so that Elisp code can call |
| 180 | profiler-cpu-log. That gives us more flexibility since that | 180 | profiler-cpu-log. That gives us more flexibility since that |
| 181 | Elisp code can then do all kinds of fun stuff like write | 181 | Elisp code can then do all kinds of fun stuff like write |