Skip to content

Commit

Permalink
Revise compiler tracing to enable statistics aggregation. (iree-org#5218
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd authored Mar 24, 2021
1 parent 500ec7b commit 47183fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iree/compiler/Utils/TracingUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ struct PassTracing : public PassInstrumentation {
// Note: we could also trace pipelines and analyses.

void runBeforePass(Pass *pass, Operation *op) override {
std::string passName = pass->getName().str();
IREE_TRACE_ZONE_BEGIN_NAMED_DYNAMIC(z0, passName.data(), passName.size());
IREE_TRACE_ZONE_BEGIN_EXTERNAL(z0, __FILE__, strlen(__FILE__), __LINE__,
pass->getName().data(),
pass->getName().size(), NULL, 0);
passTraceZonesStack.push_back(z0);
}
void runAfterPass(Pass *pass, Operation *op) override {
Expand Down

0 comments on commit 47183fb

Please sign in to comment.