Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-27 00:18:38 +00:00
parent 5871f35fe8
commit 9fe6559a97
123 changed files with 660 additions and 357 deletions

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Compile binary to default `a.out` with gprof information and run it to get `gmon.out`:
`gcc -pg {{program.c}} && ./a.out`
`gcc {{[-p|-pg]}} {{program.c}} && ./a.out`
- Run gprof on default `a.out` and `gmon.out` to obtain profile output:
@@ -23,8 +23,8 @@ source: https://github.com/tldr-pages/tldr.git
- Suppress profile field's description:
`gprof -b`
`gprof {{[-b|--brief]}}`
- Display routines that have zero usage:
`gprof -bz`
`gprof {{[-bz|--brief --display-unused-functions]}}`