Skip to content

Commit 42b5993

Browse files
committed
Version 0.1.0
1 parent 6ac2976 commit 42b5993

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
89
## [Unreleased]
910

11+
No unreleased changes.
12+
13+
14+
## [0.1.0] - 2018-03-02
15+
1016
### Added
1117

1218
- RSpec tests.
@@ -15,11 +21,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1521

1622
- Support for reading gzipped log files.
1723

24+
- Support for FlameGraph output.
25+
1826
### Changed
1927

2028
- Profiled events are now separated by request and Java thread id. Incomplete
2129
profiles are dropped.
2230

31+
- Inclusive and exclusive times are computed for each profile span. Output
32+
uses exclisive time so that hot spots aren't hidden by spans double
33+
counting the time taken by their children.
34+
2335
### Removed
2436

2537
- Dependency on the `colored` and `terminal-table` gems.
@@ -28,4 +40,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2840
future, but for now the project will focus on parsing profile data.
2941

3042

31-
[Unreleased]: https://github.com/Sharpie/puppet-profile-parser/compare/170a9ed...HEAD
43+
## [0.0.1] - 2014-05-19
44+
45+
Initial version by [Adrien Thebo](https://github.com/adrienthebo)
46+
47+
48+
[Unreleased]: https://github.com/Sharpie/puppet-profile-parser/compare/0.1.0...HEAD
49+
[0.1.0]: https://github.com/Sharpie/puppet-profile-parser/compare/0.0.1...0.1.0
50+
[0.0.1]: https://github.com/Sharpie/puppet-profile-parser/compare/53a9d9f...0.0.1

profile-parser.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
require 'optparse'
55

66
module PuppetProfiler
7+
VERSION = '0.1.0'.freeze
8+
79
# Utility functions for terminal interaction
810
module Tty
911
COLOR_CODES = {
@@ -390,6 +392,11 @@ def initialize(argv = [])
390392
$stdout.puts(parser.help)
391393
exit 0
392394
end
395+
396+
parser.on_tail('--version', 'Show version') do
397+
puts VERSION
398+
exit 0
399+
end
393400
end
394401

395402
args = argv.dup

0 commit comments

Comments
 (0)