-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix profiler for Dict change; add basic "does it work at all?" tests
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 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
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,14 @@ | ||
@profile sleep(0.1) | ||
let iobuf = IOBuffer() | ||
Profile.print(iobuf) | ||
str = takebuf_string(iobuf) | ||
@test !isempty(str) | ||
Profile.print(iobuf, format=:flat) | ||
str = takebuf_string(iobuf) | ||
@test !isempty(str) | ||
Profile.print(iobuf, format=:tree, C=true) | ||
str = takebuf_string(iobuf) | ||
@test !isempty(str) | ||
Profile.clear() | ||
@test isempty(Profile.fetch()) | ||
end |
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
fbd4463
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.
Is this change related to this Travis failure?
fbd4463
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.
Must be. How the heck can that happen? Sampling interval is 1ms.
I'll try making it a busy-wait for 1s and see what happens.