1// Check print_module_map option.
2
3// RUN: %clangxx_memprof -O0 %s -o %t
4// RUN: %env_memprof_opts=print_text=true:log_path=stderr:print_module_map=1 %run %t 2>&1 | FileCheck %s
5// RUN: %env_memprof_opts=print_text=true:log_path=stderr:print_module_map=0 %run %t 2>&1 | FileCheck %s --check-prefix=NOMAP
6
7// CHECK: Process memory map follows:
8// CHECK: dump_process_map.cpp.tmp
9// CHECK: End of process memory map.
10// NOMAP-NOT: memory map
11
12int main() {
13 return 0;
14}
15

source code of compiler-rt/test/memprof/TestCases/dump_process_map.cpp