summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/TransactionCallbackInvoker.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2024-06-27 23:38:43 +0000
committer Vishnu Nair <vishnun@google.com> 2024-06-28 19:20:08 +0000
commitbe0ad90f195063f8a846b15cb435d71544e5db1f (patch)
tree31427d8262ad439780e1e9ca18d9c4c1a7c919e7 /services/surfaceflinger/TransactionCallbackInvoker.cpp
parent20f86107d6bab7cc810700550b779bf5734b332f (diff)
Create a wrapper for atrace macros
Create a SF specific macro to call into atrace. This will make the switch to perfetto for capturing atrace tags easier. Flag: EXEMPT refactor Bug: 349905670 Test: perfetto Change-Id: I4d046d837f52ef78b08e3c97556f2eddb06232dd
Diffstat (limited to 'services/surfaceflinger/TransactionCallbackInvoker.cpp')
-rw-r--r--services/surfaceflinger/TransactionCallbackInvoker.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/surfaceflinger/TransactionCallbackInvoker.cpp b/services/surfaceflinger/TransactionCallbackInvoker.cpp
index 37543ba171..881bf35b58 100644
--- a/services/surfaceflinger/TransactionCallbackInvoker.cpp
+++ b/services/surfaceflinger/TransactionCallbackInvoker.cpp
@@ -26,12 +26,10 @@
#include "TransactionCallbackInvoker.h"
#include "BackgroundExecutor.h"
#include "Utils/FenceUtils.h"
-#include "utils/Trace.h"
-
-#include <cinttypes>
#include <binder/IInterface.h>
#include <common/FlagManager.h>
+#include <common/trace.h>
#include <utils/RefBase.h>
namespace android {
@@ -209,7 +207,7 @@ void TransactionCallbackInvoker::sendCallbacks(bool onCommitOnly) {
BackgroundExecutor::getInstance().sendCallbacks(
{[listenerStatsToSend = std::move(listenerStatsToSend)]() {
- ATRACE_NAME("TransactionCallbackInvoker::sendCallbacks");
+ SFTRACE_NAME("TransactionCallbackInvoker::sendCallbacks");
for (auto& stats : listenerStatsToSend) {
interface_cast<ITransactionCompletedListener>(stats.listener)
->onTransactionCompleted(stats);