MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / start

Method start

src/plugins/valgrind/valgrind.cpp:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool Valgrind::start()
22{
23 qInfo() << __FUNCTION__;
24 using namespace dpfservice;
25 auto &ctx = dpfInstance.serviceContext();
26 auto windowService = ctx.service<WindowService>(WindowService::name());
27
28 if (windowService) {
29 ValgrindBar *valgrindBar = new ValgrindBar();
30 windowService->addContextWidget(tr("&Valgrind"), new AbstractWidget(valgrindBar), false);
31 }
32
33 ValgrindRunner::instance()->initialize();
34
35 return true;
36}
37
38dpf::Plugin::ShutdownFlag Valgrind::stop()
39{

Callers 1

runValgrindMethod · 0.45

Calls 3

addContextWidgetMethod · 0.80
nameFunction · 0.50
initializeMethod · 0.45

Tested by

no test coverage detected