CMS 3D CMS Logo

Functions | Variables
cms::jeprof Namespace Reference

Functions

void makeHeapDump (const char *)
 

Variables

std::once_flag warning_flag
 

Function Documentation

◆ makeHeapDump()

void cms::jeprof::makeHeapDump ( const char *  fileName)

Definition at line 33 of file jeprof.cc.

References MillePedeFileConverter_cfg::fileName, and warning_flag.

Referenced by edm::service::JeProfService::makeDump().

33  {
34  std::once_flag warning_flag;
35  if (!have_jemalloc_and_prof) {
36  std::call_once(warning_flag,
37  []() {
38  edm::LogWarning("JeProfModule")
39  << "JeProfModule requested but application is not"
40  << " currently being profiled with jemalloc profiling enabled\n"
41  << "Enable jemalloc profiling by running\n"
42  << "MALLOC_CONF=prof_leak:true,lg_prof_sample:10,prof_final:true cmsRunJEProf config.py\n";
43  });
44  return;
45  }
46  mallctl("prof.dump", nullptr, nullptr, &fileName, sizeof(const char *));
47  }
std::once_flag warning_flag
Definition: jeprof.cc:32
Log< level::Warning, false > LogWarning

Variable Documentation

◆ warning_flag

std::once_flag cms::jeprof::warning_flag

Definition at line 32 of file jeprof.cc.

Referenced by makeHeapDump().