tflite-micro icon indicating copy to clipboard operation
tflite-micro copied to clipboard

Reduce size of MicroProfiler

Open andresovela opened this issue 1 year ago • 8 comments

The MicroProfiler class has these buffers:

const char* tags_[kMaxEvents];
uint32_t start_ticks_[kMaxEvents];
uint32_t end_ticks_[kMaxEvents];

struct TicksPerTag {
  const char* tag;
  uint32_t ticks;
};

TicksPerTag total_ticks_per_tag[kMaxEvents];

We need 20 bytes per event, so an instance of MicroProfiler uses 80 KB of RAM, even if the model you're profiling has only a few nodes.

andresovela avatar Oct 18 '24 13:10 andresovela

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] avatar Nov 13 '24 10:11 github-actions[bot]

#2724 is still open

andresovela avatar Nov 13 '24 11:11 andresovela

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] avatar Dec 09 '24 10:12 github-actions[bot]

#2724 is still open

andresovela avatar Dec 09 '24 10:12 andresovela

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] avatar Jan 05 '25 10:01 github-actions[bot]

#2724 is still open

andresovela avatar Jan 07 '25 09:01 andresovela

"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."

github-actions[bot] avatar Feb 02 '25 10:02 github-actions[bot]

"This issue is being closed because it has been marked as stale for 5 days with no further activity."

github-actions[bot] avatar Feb 07 '25 10:02 github-actions[bot]