NMT's 'summary' mode overhead primarily comes from atomically incrementing/decrementing counters for memory categories and adding a 16-byte header to each `malloc` request. 'Detail' mode significantly increases CPU and memory consumption by additionally capturing and processing full call stacks for every native allocation, which involves hash map lookups and storage.