diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/ztrace.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ztrace.h b/include/ztrace.h index d507809..fc6f263 100644 --- a/include/ztrace.h +++ b/include/ztrace.h @@ -24,10 +24,11 @@ void ztrace_mark(const char *label, uint64_t value); /* Names `len` bytes at `ptr` (a `variable` event), records them, and keeps * recording what changes in them: only the bytes that changed, at each event - * that ends a moment. The memory must stay mapped. */ + * that ends a moment. The memory must stay mapped. More than 1 MiB is + * refused, with a line on stderr: watch the part that matters. */ void ztrace_watch(const void *ptr, size_t len, const char *name); -/* Records `len` bytes at `ptr` as they are now, once. */ +/* Records `len` bytes at `ptr` as they are now, once. At most 1 MiB. */ void ztrace_snapshot(const void *ptr, size_t len); #ifdef __cplusplus |
