From fd1eecc950550e02e760b71f25e157933b95df56 Mon Sep 17 00:00:00 2001 From: Nikolai Tillmann Date: Tue, 21 Nov 2023 10:49:37 -0800 Subject: [PATCH] measure constant_propagation::Transform::has_problematic_return Summary: This is a behavior-preserving change. Reviewed By: beicy Differential Revision: D51222079 fbshipit-source-id: a6fff52d9a3b8a548a83e356b6af90b2faa6b213 --- service/constant-propagation/ConstantPropagationTransform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/constant-propagation/ConstantPropagationTransform.cpp b/service/constant-propagation/ConstantPropagationTransform.cpp index 5612b25ba9c..91757d3d618 100644 --- a/service/constant-propagation/ConstantPropagationTransform.cpp +++ b/service/constant-propagation/ConstantPropagationTransform.cpp @@ -965,6 +965,10 @@ bool Transform::has_problematic_return(cfg::ControlFlowGraph& cfg, DexType* declaring_type, DexProto* proto, const XStoreRefs* xstores) { + static AccumulatingTimer s_timer( + "constant_propagation::Transform::has_problematic_return"); + auto t = s_timer.scope(); + // Nothing to check without method information if (!declaring_type || !proto) { return false;