diff --git a/src/transactions/InvokeHostFunctionOpFrame.cpp b/src/transactions/InvokeHostFunctionOpFrame.cpp index 38177ec16a..336cd97742 100644 --- a/src/transactions/InvokeHostFunctionOpFrame.cpp +++ b/src/transactions/InvokeHostFunctionOpFrame.cpp @@ -497,6 +497,14 @@ InvokeHostFunctionOpFrame::doApply(Application& app, AbstractLedgerTxn& ltx, metrics.mCpuInsnExclVm = out.cpu_insns_excluding_vm_instantiation; metrics.mInvokeTimeNsecsExclVm = out.time_nsecs_excluding_vm_instantiation; + + CLOG_TRACE(Tx, "invokeTimeNsecs: {}, cpuInsn: {}, ratio: {}", + metrics.mInvokeTimeNsecs, metrics.mCpuInsn, + (float)metrics.mInvokeTimeNsecs / (float)metrics.mCpuInsn); + CLOG_TRACE(Tx, "(excl VM) invokeTimeNsecs: {}, cpuInsn: {}, ratio: {}", + metrics.mInvokeTimeNsecsExclVm, metrics.mCpuInsnExclVm, + (float)metrics.mInvokeTimeNsecsExclVm / + (float)metrics.mCpuInsnExclVm); if (!out.success) { maybePopulateDiagnosticEvents(appConfig, out, metrics); diff --git a/src/transactions/TransactionFrame.cpp b/src/transactions/TransactionFrame.cpp index db5ce3c686..efe984e8c7 100644 --- a/src/transactions/TransactionFrame.cpp +++ b/src/transactions/TransactionFrame.cpp @@ -1950,6 +1950,12 @@ TransactionFrame::apply(Application& app, AbstractLedgerTxn& ltx, ok = applyOperations(signatureChecker, app, ltx, meta, sorobanBasePrngSeed); + + if (isSoroban()) + { + CLOG_TRACE(Tx, "Soroban transaction meta: {}", + xdr::xdr_to_string(meta.getXDR(), "meta")); + } } return ok; }