Add ETDumpGen_Done state and reset when in that state (#3667)
Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/3667 Currently when we call `get_etdump_data()` we finalize the flatbuffer and close it. In order to add entries to etdump once again after we've closed it we need to reset the etdump buffer. In order to support this, adding a `ETDumpGen_Done` state to which we move after calling `get_etdump_data()`. When this state is detected in `create_event_block` we implicitly call `reset()` and thus enabling writing to the flatbuffer again without any user intervention. Reviewed By: swolchok Differential Revision: D57517927 fbshipit-source-id: 82f44950e1a2da1f2deec54476aaf869d7e9df28
T
Tarun Karuturi committed
07dcf35b3e71c940e12385cc6cbd7e32b29c8e21
Parent: 69f4a2f
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 5/21/2024, 7:12:34 AM