| 458 | } |
| 459 | |
| 460 | void 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 | |
| 477 | void CliProfiler::ReadSMapsFile(QFile* file) { |
| 478 | QTextStream stream(file); |