MCPcopy Create free account
hub / github.com/Tencent/loli_profiler / PushEmptySMapsFile

Method PushEmptySMapsFile

src/cliprofiler.cpp:460–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460void CliProfiler::PushEmptySMapsFile() {
461 QTemporaryFile smapsFile;
462 smapsFile.open();
463 QProcess process;
464 process.setProgram(PathUtils::GetADBExecutablePath());
465 QStringList pushArgs;
466 if (!options_.deviceSerial.isEmpty()) {
467 pushArgs << "-s" << options_.deviceSerial;
468 }
469 pushArgs << "push" << smapsFile.fileName() << "/data/local/tmp/smaps.txt";
470 AdbProcess::SetArguments(&process, pushArgs);
471 process.start();
472 process.waitForStarted();
473 process.waitForFinished();
474 process.close();
475}
476
477void CliProfiler::ReadSMapsFile(QFile* file) {
478 QTextStream stream(file);

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected