Skip to content

Commit

Permalink
Update README with dups var.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxerwang authored and Zhong Wang committed Oct 27, 2018
1 parent 51e808b commit 59a334c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -280,12 +280,19 @@ Dedupped 2217, kept 46
syscall: 2
```

To show goroutines with 5+ duplicates:

```bash
>> a.search("dups >= 5")
...
```

### Save the Modified Goroutine Dump to a File

After a dump var is modified, it can be saved to a file:

```bash
a.save("pprof-deduped.log")
>> a.save("pprof-deduped.log")
```

## Properties of a Goroutine Dump Item
Expand All @@ -295,6 +302,7 @@ Each dump item has 5 properties which can be used in conditionals:
| property | type | meaning |
| -------- | ------- | --------------------------------------------------- |
| id | integer | The goroutine ID. |
| dups | integer | The number of duplicate traces. |
| duration | integer | The waiting duration (in minutes) of a goroutine. |
| lines | integer | The number of lines of the goroutine's stack trace. |
| state | string | The running state of the goroutine. |
Expand Down

0 comments on commit 59a334c

Please sign in to comment.