summaryrefslogtreecommitdiff
path: root/libs/binder/Binder.cpp
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2023-01-11 16:10:41 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-01-11 16:10:41 +0000
commitc7e4a0944a105eefb62b0a7630fcf137da99e2fc (patch)
treef4af17e167cbf8d1ee4c6c52f1e85833fbc7ef81 /libs/binder/Binder.cpp
parent1c5aa9cb5d7969ca1610a5566a64e912b2fd8724 (diff)
parent68dbcfec4f0bd4b26c13bf46b0dc0e8339b00541 (diff)
Merge "Add timestamp to RecordedTransaction"
Diffstat (limited to 'libs/binder/Binder.cpp')
-rw-r--r--libs/binder/Binder.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp
index 5e725a91f2..da5affb274 100644
--- a/libs/binder/Binder.cpp
+++ b/libs/binder/Binder.cpp
@@ -407,8 +407,10 @@ status_t BBinder::transact(
AutoMutex lock(e->mLock);
if (mRecordingOn) {
Parcel emptyReply;
+ timespec ts;
+ timespec_get(&ts, TIME_UTC);
auto transaction =
- android::binder::debug::RecordedTransaction::fromDetails(code, flags, data,
+ android::binder::debug::RecordedTransaction::fromDetails(code, flags, ts, data,
reply ? *reply
: emptyReply,
err);