cx icon indicating copy to clipboard operation
cx copied to clipboard

CX program statistics and data API

Open SkycoinSynth opened this issue 3 years ago • 0 comments

At any point in a CX program, I want an API to get

  • number of CX instructions executed (program step/instruction counter, if program compiled with debug flag)

  • number of function calls made (only if program is compiled with debug flag)

  • number of objects allocated (if program compiled with debug flag)

  • number of objects deallocated (if program compiled with debug flag)

  • total memory usage (or heap max size, heap used size)

  • stack depth

  • ability to get current stack information and print as a string


These two need to be separate function calls so we can split up

  • execution time
  • compilation time

ETC

atleast we need to get "number of CX ASM instructions executed" which is the instruction counter for a program from begining to end. Where is this API exposed?

SkycoinSynth avatar Mar 05 '21 08:03 SkycoinSynth