Lambda-Mountain-Compiler-Backend / lambda-mountain

Compiler Backend for LSTS (Typed Macro Assembler)
https://github.com/andrew-johnson-4/lambda-mountain/wiki
MIT License
29 stars 2 forks source link

Custom Memory Profiler #1460

Open andrew-johnson-4 opened 1 month ago

andrew-johnson-4 commented 1 month ago

I want to see

1) functions that are big 2) globals that are big 3) intermixing holistic view of both

also, lost vs reclaimed

andrew-johnson-4 commented 1 month ago

this would immediately solve the problems that I am having trying to guess what is big.

alex-s168 commented 1 month ago

sounds like a good idea, but how do you implement that?

andrew-johnson-4 commented 1 month ago

counters for each function, counters for each global. Fairly simple, just need to add the codegen for it.