Added scripts/stack.py for viewing stack usage

Note this detects loops (recursion), and renders this as infinity.
Currently littlefs does have a single recursive function and you can see
how this infects the full call graph. Eventually this should be removed.
This commit is contained in:
Christopher Haster
2022-02-20 10:51:01 -06:00
parent 20c58dcbaa
commit f4c7af76f8
6 changed files with 370 additions and 12 deletions

View File

@@ -148,7 +148,7 @@ if __name__ == "__main__":
import argparse
import sys
parser = argparse.ArgumentParser(
description="Find code size at the function level.")
description="Find and show callgraph.")
parser.add_argument('ci_paths', nargs='*', default=CI_PATHS,
help="Description of where to find *.ci files. May be a directory \
or a list of paths. Defaults to %r." % CI_PATHS)