Add support for ARM counters

Adding support for ARM counters via a third-party lib.
The main target platform is Android.
This commit is contained in:
tabi.katalin
2020-05-20 20:19:17 +01:00
committed by Baldur Karlsson
parent 6a2415f334
commit f1bd727dff
57 changed files with 10086 additions and 1 deletions
+11
View File
@@ -558,11 +558,22 @@ struct AndroidRemoteServer : public RemoteServer
{
ResetAndroidSettings();
// enable profiling to measure hardware counters
Android::adbExecCommand(m_deviceID, "shell setprop security.perf_harden 0");
LazilyStartLogcatThread();
return RemoteServer::OpenCapture(proxyid, filename, opts, progress);
}
virtual void CloseCapture(IReplayController *rend) override
{
// disable profiling
Android::adbExecCommand(m_deviceID, "shell setprop security.perf_harden 1");
RemoteServer::CloseCapture(rend);
}
virtual rdcstr GetHomeFolder() override { return ""; }
virtual rdcarray<PathEntry> ListFolder(const char *path) override
{