Skip to content

Commit

Permalink
common: stack usage statistics
Browse files Browse the repository at this point in the history
- Stack usage statistics generated with every build:
DEFAULT_CFLAGS += -fstack-usage

- Stack usage statistics log to one file:
fgrep -r -e static -e dynamic src | grep '.su:' | \
    grep -e nondebug | \
    gawk '{print $2 " "  $1 " " $3 " "  $4 " "  $5}' | \
    sort -n > stack-usage-nondebug.txt

fgrep -r -e static -e dynamic src | grep '.su:' | \
    grep -e '\/debug\/` | \
    gawk '{print $2 " "  $1 " " $3 " "  $4 " "  $5}' | \
    sort -n > stack-usage-debug.txt

Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Oct 9, 2023
1 parent 001336c commit f1bbde5
Show file tree
Hide file tree
Showing 3 changed files with 10,108 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ DEFAULT_CFLAGS += -Wpointer-arith
DEFAULT_CFLAGS += -Wsign-conversion
DEFAULT_CFLAGS += -Wsign-compare
DEFAULT_CFLAGS += -Wunused-parameter
DEFAULT_CFLAGS += -fstack-usage

ifeq ($(WCONVERSION_AVAILABLE), y)
DEFAULT_CFLAGS += -Wconversion
Expand Down
Loading

0 comments on commit f1bbde5

Please sign in to comment.