Qi Wang
|
648b3b9f76
|
Lower the num_threads in the stress test of test/unit/prof_recent
This takes a fair amount of resources. Under high concurrency it was causing
resource exhaustion such as pthread_create and mmap failures.
|
2022-01-11 16:58:56 -08:00 |
|
Qi Wang
|
d038160f3b
|
Fix shadowed variable usage.
Verified with EXTRA_CFLAGS=-Wshadow.
|
2021-12-23 10:55:08 -08:00 |
|
David Goldblatt
|
304cdbb132
|
Fix a prof_recent/prof_sys_thread_name interaction
When both of these are enabled, the output format changes slightly. Teach the
unit test about the interaction.
|
2021-03-31 14:45:12 -07:00 |
|
Yinan Zhang
|
9545c2cd36
|
Add sample interval to prof last-N dump
|
2020-11-13 15:33:27 -08:00 |
|
Yinan Zhang
|
09eda2c9b6
|
Add unit tests for usize in prof recent records
|
2020-09-09 13:31:35 -07:00 |
|
Yinan Zhang
|
b7858abfc0
|
Expose prof testing internal functions
|
2020-06-19 09:16:51 -07:00 |
|
Yinan Zhang
|
857ebd3daf
|
Make edata pointer on prof recent record an atomic fence
|
2020-06-09 17:03:05 -07:00 |
|
Yinan Zhang
|
b8bdea6b26
|
Fix: prof_recent_alloc_max_ctl_read() does not take tsd
|
2020-06-09 17:03:05 -07:00 |
|
David Goldblatt
|
294b276fc7
|
PA: Parameterize emap. Move emap_global to arena.
This lets us test the PA module without interfering with the global emap used by
the real allocator (the one not under test).
|
2020-04-10 13:12:47 -07:00 |
|
Yinan Zhang
|
c4e9ea8cc6
|
Get rid of locks in prof recent test
|
2020-04-07 17:22:24 -07:00 |
|
Yinan Zhang
|
2deabac079
|
Get rid of custom iterator for last-N records
|
2020-04-07 17:22:24 -07:00 |
|
Yinan Zhang
|
9d2cc3b0fa
|
Make use of assert_* in test/unit/prof_recent.c
|
2020-02-19 16:03:16 -08:00 |
|
Yinan Zhang
|
21dfa4300d
|
Change assert_* to expect_* in tests
```
grep -Irl assert_ test/ | xargs sed -i \
's/witness_assert/witness_do_not_replace/g';
grep -Irl assert_ test/ | xargs sed -i \
's/malloc_mutex_assert_owner/malloc_mutex_do_not_replace_owner/g';
grep -Ir assert_ test/ | grep -o "[_a-zA-Z]*assert_[_a-zA-Z]*" | \
grep -v "^assert_"; # confirm no output
grep -Irl assert_ test/ | xargs sed -i 's/assert_/expect_/g';
grep -Irl witness_do_not_replace test/ | xargs sed -i \
's/witness_do_not_replace/witness_assert/g';
grep -Irl malloc_mutex_do_not_replace_owner test/ | xargs sed -i \
's/malloc_mutex_do_not_replace_owner/malloc_mutex_assert_owner/g';
```
|
2020-02-19 16:03:16 -08:00 |
|
David Goldblatt
|
7e6c8a7286
|
Emap: Standardize naming.
Namespace everything under emap_, always specify what it is we're looking up
(emap_lookup -> emap_edata_lookup), and use "ctx" over "info".
|
2020-02-17 10:50:51 -08:00 |
|
David Goldblatt
|
9b5d105fc3
|
Emap: Move in iealloc.
This is logically scoped to the emap.
|
2020-02-17 10:50:51 -08:00 |
|
Yinan Zhang
|
68e8ddcaff
|
Add mallctl for dumping last-N profiling records
|
2020-02-14 12:46:38 -08:00 |
|
Yinan Zhang
|
cd6e908241
|
Add stress test for last-N profiling mode
|
2020-01-21 16:51:26 -08:00 |
|
Yinan Zhang
|
2b604a3016
|
Record request size in prof recent entries
|
2020-01-10 12:01:01 -08:00 |
|
Yinan Zhang
|
9a60cf54ec
|
Last-N profiling mode
|
2019-12-30 15:58:57 -08:00 |
|