void requestExit() { Stats::dump(); Stats::clear(); Timer::RequestExit(); if (profData()) profData()->maybeResetCounters(); requestExitProfData(); if (Trace::moduleEnabledRelease(Trace::mcgstats, 1)) { Trace::traceRelease("MCGenerator perf counters for %s:\n", g_context->getRequestUrl(50).c_str()); for (int i = 0; i < tpc_num_counters; i++) { Trace::traceRelease("%-20s %10" PRId64 "\n", kPerfCounterNames[i], tl_perf_counters[i]); } Trace::traceRelease("\n"); } clearDebuggerCatches(); }
void requestExit() { always_assert(!GetWriteLease().amOwner()); TRACE_MOD(Trace::txlease, 2, "%" PRIx64 " write lease stats: %15" PRId64 " kept, %15" PRId64 " grabbed\n", Process::GetThreadIdForTrace(), GetWriteLease().hintKept(), GetWriteLease().hintGrabbed()); Stats::dump(); Stats::clear(); Timer::RequestExit(); if (profData()) profData()->maybeResetCounters(); requestExitProfData(); if (Trace::moduleEnabledRelease(Trace::mcgstats, 1)) { Trace::traceRelease("MCGenerator perf counters for %s:\n", g_context->getRequestUrl(50).c_str()); for (int i = 0; i < tpc_num_counters; i++) { Trace::traceRelease("%-20s %10" PRId64 "\n", kPerfCounterNames[i], tl_perf_counters[i]); } Trace::traceRelease("\n"); } clearDebuggerCatches(); }