Skip to content

Commit 598d5e9

Browse files
authored
Release v2.0! Set full_signatures = true by default and update README (#33)
* Set `full_signatures = true` by default, since it's more informative! * Bump to v2.0.0; update README
1 parent 8f83b83 commit 598d5e9

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PProf"
22
uuid = "e4faabce-9ead-11e9-39d9-4379958e3056"
33
authors = ["Valentin Churavy <v.churavy@gmail.com>", "Nathan Daly <nhdaly@gmail.com>"]
4-
version = "1.2.0"
4+
version = "2.0.0"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ For more usage examples see the pprof docs: https://github.com/google/pprof/blob
2727
## Usage
2828
```julia
2929
help?> pprof
30-
pprof(data, period;
30+
pprof([data, [lidict]];
3131
web = true, webhost = "localhost", webport = 57599,
32-
out = "profile.pb.gz", from_c = true, drop_frames = "", keep_frames = "",
33-
ui_relative_percentages = true,
34-
)
32+
out = "profile.pb.gz", from_c = true, full_signatures = true, drop_frames = "",
33+
keep_frames = "", ui_relative_percentages = true, sampling_delay = nothing,
34+
)
35+
pprof(FlameGraphs.flamegraph(); kwargs...)
3536

36-
Fetches the collected Profile data, exports to the pprof format, and (optionally) opens a pprof web-server for interactively
37-
viewing the results.
38-
```
37+
Fetches the collected `Profile` data, exports to the `pprof` format, and (optionally) opens
38+
a `pprof` web-server for interactively viewing the results.
39+
```
3940
```julia
4041
help?> @pprof
4142
@pprof ex
@@ -62,4 +63,4 @@ Serving web UI on http://localhost:57599
6263
## Google PProf Web View
6364
<img width=500px src="docs/graph.png" alt="graph"/>
6465

65-
!["flamegraph"](docs/flamegraph.png)
66+
<img width=500px src="docs/flamegraph.png" alt="flamegraph"/>

docs/flamegraph.png

90.6 KB
Loading

src/PProf.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ using Base.StackTraces: StackFrame
5151
"""
5252
pprof([data, [lidict]];
5353
web = true, webhost = "localhost", webport = 57599,
54-
out = "profile.pb.gz", from_c = true, full_signatures = false, drop_frames = "",
54+
out = "profile.pb.gz", from_c = true, full_signatures = true, drop_frames = "",
5555
keep_frames = "", ui_relative_percentages = true, sampling_delay = nothing,
5656
)
5757
pprof(FlameGraphs.flamegraph(); kwargs...)
@@ -81,8 +81,8 @@ You can also use `PProf.refresh(file="...")` to open a new file in the server.
8181
- `webport::Integer`: If using `web`, which port to launch the webserver on.
8282
- `out::String`: Filename for output.
8383
- `from_c::Bool`: If `false`, exclude frames that come from from_c. Defaults to `true`.
84-
- `full_signatures::Bool`: If `true`, methods are printed as signatures with full
85-
argument types. E.g. `eval(::Module, ::Any)` instead of `eval`.
84+
- `full_signatures::Bool`: If `true`, methods are printed as signatures with full argument
85+
types. If `false`, as only names. E.g. `eval(::Module, ::Any)` vs `eval`.
8686
- `drop_frames`: frames with function_name fully matching regexp string will be dropped from the samples,
8787
along with their successors.
8888
- `keep_frames`: frames with function_name fully matching regexp string will be kept, even if it matches drop_functions.
@@ -97,7 +97,7 @@ function pprof(data::Union{Nothing, Vector{UInt}} = nothing,
9797
webport::Integer = 57599,
9898
out::AbstractString = "profile.pb.gz",
9999
from_c::Bool = true,
100-
full_signatures::Bool = false,
100+
full_signatures::Bool = true,
101101
drop_frames::Union{Nothing, AbstractString} = nothing,
102102
keep_frames::Union{Nothing, AbstractString} = nothing,
103103
ui_relative_percentages::Bool = true,

src/flamegraphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function pprof(fg::Node{NodeData},
1212
webport::Integer = 57599,
1313
out::AbstractString = "profile.pb.gz",
1414
from_c::Bool = true,
15-
full_signatures::Bool = false,
15+
full_signatures::Bool = true,
1616
drop_frames::Union{Nothing, AbstractString} = nothing,
1717
keep_frames::Union{Nothing, AbstractString} = nothing,
1818
ui_relative_percentages::Bool = true,

0 commit comments

Comments
 (0)