MCPcopy Create free account
hub / github.com/KDE/kdevelop / attachHeaptrack

Method attachHeaptrack

plugins/heaptrack/plugin.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Plugin::attachHeaptrack()
123{
124#if HAVE_KSYSGUARD
125 const auto pid = KDevMI::askUserForProcessId(activeMainWindow());
126 if (pid == 0) {
127 return;
128 }
129
130 auto heaptrackJob = new Job(pid);
131 connect(heaptrackJob, &Job::finished, this, &Plugin::jobFinished);
132 core()->runController()->registerJob(heaptrackJob);
133
134 m_launchAction->setEnabled(false);
135#endif
136}
137
138void Plugin::jobFinished(KJob* kjob)
139{

Callers

nothing calls this directly

Calls 4

activeMainWindowFunction · 0.85
registerJobMethod · 0.80
runControllerMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected