mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 18:58:45 +00:00
Update cheatsheets
This commit is contained in:
@@ -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]}}`
|
||||
|
||||
Reference in New Issue
Block a user