-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
280 additions
and
1,533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ language: julia | |
os: | ||
- linux | ||
julia: | ||
- 0.7 | ||
- 1.0 | ||
- 1 | ||
- nightly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
name = "ProfileView" | ||
uuid = "c46f51b8-102a-5cf2-8d2c-8597cb0e0da7" | ||
author = ["Tim Holy <[email protected]>"] | ||
version = "0.5.3" | ||
version = "0.6.0" | ||
|
||
[deps] | ||
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175" | ||
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" | ||
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" | ||
FlameGraphs = "08572546-2f56-4bcf-ba4e-bab62c3a3f89" | ||
Graphics = "a2bd30eb-e257-5431-a919-1863eab51364" | ||
Gtk = "4c0ca9eb-093a-5379-98c5-f87ac0bbbf44" | ||
GtkReactive = "27996c0f-39cd-5cc1-a27a-05f136f946b6" | ||
|
@@ -16,15 +17,15 @@ Profile = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" | |
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | ||
|
||
[compat] | ||
Cairo = "0.5, 0.6, 0.7, 0.8, 1" | ||
Cairo = "0.6, 0.8, 1" | ||
Colors = "0.9, 0.10, 0.11" | ||
FileIO = "1" | ||
Graphics = "0.2, 0.3, 0.4, 1" | ||
Gtk = "0.16, 0.17, 0.18, 1" | ||
GtkReactive = "0.5.1, 0.6, 0.7, 1" | ||
FlameGraphs = "0.1" | ||
Graphics = "0.4, 1" | ||
Gtk = "0.18, 1" | ||
GtkReactive = "0.7, 1" | ||
IntervalSets = "0.2, 0.3" | ||
julia = "0.7, 1" | ||
|
||
julia = "1" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This functionality is currently broken (looking for volunteers to fix it) | ||
|
||
(Once fixed it can move back to the README) | ||
|
||
- The toolbar at the top contains two icons to load and save profile | ||
data, respectively. Clicking the save icon will prompt you for a | ||
filename. Launching `ProfileView.view(nothing)` opens a blank | ||
window; you can populate it with saved data by clicking on the | ||
"open" icon. | ||
|
||
### Saving profile data manually | ||
|
||
If you're using the Gtk backend, the easiest approach is to click on | ||
the "Save as" icon. | ||
|
||
From the REPL, you can save profile data for later viewing and analysis using the JLD file format. | ||
The main trick is that the backtrace data, on its own, is only valid within a particular | ||
julia session. To become portable, you have to save "line information" that looks | ||
up the particular line number in the source code corresponding to a particular | ||
machine instruction. Here's an example: | ||
|
||
```julia | ||
li, lidict = Profile.retrieve() | ||
using JLD | ||
@save "/tmp/foo.jlprof" li lidict | ||
``` | ||
Now open a new julia session, and try the following: | ||
``` | ||
using HDF5, JLD, ProfileView | ||
@load "/tmp/foo.jlprof" | ||
ProfileView.view(li, lidict=lidict) | ||
``` |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
3b4fdcd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
3b4fdcd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/8265
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via: