Skip to content

Commit 9dc6989

Browse files
dulinrileyfacebook-github-bot
authored andcommitted
Add warning message about missing etdump data (#1432)
Summary: Pull Request resolved: #1432 When there's no data for ETDump to write out, make a warning message for the user. Info level was chosen because there is no warning level, just Info and Error. Differential Revision: D52221886 fbshipit-source-id: a3da590ea77ca2f2a9fc7a928b37fd1da1e2c616
1 parent ffc87a3 commit 9dc6989

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extension/pybindings/pybindings.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,12 @@ struct PyModule final {
550550
fwrite((uint8_t*)result.buf, 1, result.size, f);
551551
fclose(f);
552552
free(result.buf);
553+
} else {
554+
ET_LOG(
555+
Info,
556+
"No etdump data found, try rebuilding with "
557+
"the CMake option EXECUTORCH_ENABLE_EVENT_TRACER or with "
558+
"buck run --config executorch.event_tracer_enabled=true");
553559
}
554560
}
555561

0 commit comments

Comments
 (0)