Skip to content

Commit 2b0488c

Browse files
committed
Add memstats example
1 parent da5a9c4 commit 2b0488c

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,18 @@ jplot --url http://:8080/debug/vars mem.Heap+mem.Sys+mem.Stack counter:cpu.STime
5959

6060
![all](doc/all.png)
6161

62-
See [gojq|github.com/elgs/gojq] for more details on the JSON query syntax.
62+
See [gojq](github.com/elgs/gojq) for more details on the JSON query syntax.
63+
64+
### Memstats
65+
66+
Here is an example command to graph a Go program memstats:
67+
68+
```
69+
jplot --url http://:8080/debug/vars \
70+
memstats.HeapSys+memstats.HeapAlloc+memstats.HeapIdle \
71+
counter:memstats.TotalAlloc \
72+
memstats.HeapObjects
73+
```
74+
![all](doc/memstats.png)
75+
76+

doc/memstats.png

382 KB
Loading

0 commit comments

Comments
 (0)