Profiling memory and CPU usagewire-cell A how-to talk on profiling the memory and CPU usage of Wire-Cell Toolkit jobs with Google PerfTools and Valgrind, motivated by DNNROI inference optimization. It shows how to run the profilers with LD_PRELOAD, generate and view call graphs with google-pprof, and use the Valgrind callgrind, massif and memcheck tools. It closes with pointers to GPU and kernel-level profiling tools.profiling Google PerfTools Valgrind massif callgrind memory CPU DNNROI