diff --git a/CHANGELOG.md b/CHANGELOG.md index bafd9b6..b739fe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). + ## [Unreleased] +No unreleased changes. + + +## [0.1.0] - 2018-03-02 + ### Added - RSpec tests. @@ -15,11 +21,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Support for reading gzipped log files. + - Support for FlameGraph output. + ### Changed - Profiled events are now separated by request and Java thread id. Incomplete profiles are dropped. + - Inclusive and exclusive times are computed for each profile span. Output + uses exclisive time so that hot spots aren't hidden by spans double + counting the time taken by their children. + ### Removed - Dependency on the `colored` and `terminal-table` gems. @@ -28,4 +40,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). future, but for now the project will focus on parsing profile data. -[Unreleased]: https://github.com/Sharpie/puppet-profile-parser/compare/170a9ed...HEAD +## [0.0.1] - 2014-05-19 + +Initial version by [Adrien Thebo](https://github.com/adrienthebo) + + +[Unreleased]: https://github.com/Sharpie/puppet-profile-parser/compare/0.1.0...HEAD +[0.1.0]: https://github.com/Sharpie/puppet-profile-parser/compare/0.0.1...0.1.0 +[0.0.1]: https://github.com/Sharpie/puppet-profile-parser/compare/53a9d9f...0.0.1 diff --git a/profile-parser.rb b/profile-parser.rb index 65e97cf..1e5097f 100755 --- a/profile-parser.rb +++ b/profile-parser.rb @@ -4,6 +4,8 @@ require 'optparse' module PuppetProfiler + VERSION = '0.1.0'.freeze + # Utility functions for terminal interaction module Tty COLOR_CODES = { @@ -390,6 +392,11 @@ def initialize(argv = []) $stdout.puts(parser.help) exit 0 end + + parser.on_tail('--version', 'Show version') do + puts VERSION + exit 0 + end end args = argv.dup