summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");