about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-04-26 15:35:24 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-04-26 19:22:35 +1000
commit2e4f66a86f7baa5644d18bb2adc07a8cd1c7409d (patch)
tree886b843b43ba8b643554b1dcd546da3d72a66df3 /src/liballoc
parentcc794209681d6b11a63282bcd1513caa50127816 (diff)
downloadrust-2e4f66a86f7baa5644d18bb2adc07a8cd1c7409d.tar.gz
rust-2e4f66a86f7baa5644d18bb2adc07a8cd1c7409d.zip
Make dump_{alloc,allocs,local}() no-ops when tracing is disabled.
Because they traverse data structures and build up strings, which is
wasted effort if those strings aren't printed.

The patch also removes some now-unnecessary log_enabled! tests at call
sites.
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions