summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2020-06-17 04:45:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-06-17 04:45:25 +0000
commitedaa73fdfc0df50a24266c6d0904986ae23d5635 (patch)
tree0930239c06cb0712e54e6d6de7c993511dc965fc
parent311366903ebf139a1a07d4427120ce72c52b9d83 (diff)
parent8ccc5abf44582504dff1af76fd880ea8e96a7369 (diff)
downloadextras-edaa73fdfc0df50a24266c6d0904986ae23d5635.tar.gz
Merge "simpleperf: Modify profcollect API to allow float seconds duration"
-rw-r--r--simpleperf/include/simpleperf_profcollect.h2
-rw-r--r--simpleperf/profcollect.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/simpleperf/include/simpleperf_profcollect.h b/simpleperf/include/simpleperf_profcollect.h
index 193aa641..507eddf2 100644
--- a/simpleperf/include/simpleperf_profcollect.h
+++ b/simpleperf/include/simpleperf_profcollect.h
@@ -24,7 +24,7 @@ namespace etm {
bool HasSupport();
bool Record(const std::filesystem::path& output,
- const std::chrono::seconds& duration);
+ const std::chrono::duration<float>& duration);
bool Inject(const std::filesystem::path& traceInput,
const std::filesystem::path& output,
const std::string& binaryFilter);
diff --git a/simpleperf/profcollect.cpp b/simpleperf/profcollect.cpp
index 8d286381..2f15c351 100644
--- a/simpleperf/profcollect.cpp
+++ b/simpleperf/profcollect.cpp
@@ -30,7 +30,7 @@ bool HasSupport() {
}
bool Record(const std::filesystem::path& output,
- const std::chrono::seconds& duration) {
+ const std::chrono::duration<float>& duration) {
auto recordCmd = CreateCommandInstance("record");
std::vector<std::string> args;
args.push_back("-a");