Qi Wang
5884a076fb
Rename prof.dump_prefix to prof.prefix
...
This better aligns with our naming convention. The option has not been included
in any upstream release yet.
2021-08-12 23:04:29 -07:00
Yinan Zhang
4736fb4fc9
Move file handling logic in prof_data to prof_sys
2020-06-29 14:27:50 -07:00
Yinan Zhang
f307b25804
Only replace the dump file opening function in test
2020-06-29 14:27:50 -07: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
zhxchen17
4b76c684bb
Add "prof.dump_prefix" to override filename prefixes for dumps.
2019-09-12 22:26:03 -07:00
Jason Evans
de49674fbd
Use MALLOC_CONF rather than malloc_conf for tests.
...
malloc_conf does not reliably work with MSVC, which complains of
"inconsistent dll linkage", i.e. its inability to support the
application overriding malloc_conf when dynamically linking/loading.
Work around this limitation by adding test harness support for per test
shell script sourcing, and converting all tests to use MALLOC_CONF
instead of malloc_conf.
2017-02-23 08:57:02 -08:00
Jason Evans
f408643a4c
Remove extraneous parens around return arguments.
...
This resolves #540 .
2017-01-20 21:43:07 -08:00
Jason Evans
c4c2592c83
Update brace style.
...
Add braces around single-line blocks, and remove line breaks before
function-opening braces.
This resolves #537 .
2017-01-20 21:43:07 -08:00
Jason Evans
ffbb7dac3d
Remove leading blank lines from function bodies.
...
This resolves #535 .
2017-01-13 14:49:24 -08:00
Jason Evans
977103c897
Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *).
...
This avoids warnings in some cases, and is otherwise generally good
hygiene.
2016-10-27 21:31:25 -07:00
Jason Evans
ed2c2427a7
Use huge size class infrastructure for large size classes.
2016-06-05 20:42:18 -07:00
Jason Evans
772163b4f3
Add heap profiling tests.
...
Fix a regression in prof_dump_ctx() due to an uninitized variable. This
was caused by revision 4f37ef693e
, so no
releases are affected.
2014-01-17 15:40:52 -08:00