perfmonger 0.14.1 → 0.14.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42856e6da789b3ad1a522b95bc642bdf7abe1e2fb7679e4839b7da7e3157b6a9
4
- data.tar.gz: 937b2f2557ad06fe36e230c623ab07773d17bc1dd278e80b87bb8fb881a9427c
3
+ metadata.gz: b0548eb25e78b9fc8ee6005ccd4b9e9474c8d26fa0ede0ac3c787c20f03d0b3f
4
+ data.tar.gz: c390cf6b8b7faf8161fe0260f34ca24c126f074e9dc0a5a01e4b6b46a3d2cfc5
5
5
  SHA512:
6
- metadata.gz: 4f06a76145f4f4aafd9f4fa8e2de7ef855190729d25b98a6ab36a8bcbcb1ee41242736e96b3c15693ffeb341ee229f3852f00f36b27785b84124e587fdcfad41
7
- data.tar.gz: 86b957bb0edbf89f0cb7904b0059d75db11366eb26ca1b1112cd4c7566aa896240dc430d4d56a177c00c4862ebbf677f73f3447bda9e798226d7fcbf60836408
6
+ metadata.gz: bc497c0548e92775014dd75b3490928459751df69dbddcae9c7fc247638bddae1db03f12debaf91d58821e12f72adfa66e72ce663c728cf9aaea629b1796f46c
7
+ data.tar.gz: 01f8707c50884217eab3a431e5c564330441d7b5692296f045f95ffe2b066a0ace499e628024cb97c80dbc0e8e5b2254910dc150d324936f0773355dc8e49ef1
data/.gitignore CHANGED
@@ -14,3 +14,7 @@
14
14
  /.wercker/
15
15
  /spec/examples.txt
16
16
  /perfmonger.pgr.gz
17
+ /*.pdf
18
+ /*.png
19
+ /*.gp
20
+ /*.dat
data/NEWS CHANGED
@@ -1,4 +1,17 @@
1
- ## 2021-XX-XX: PerfMonger 0.15.0
1
+ ## 2023-XX-XX: PerfMonger 0.15.0
2
+
3
+ ## 2023-05-13: PerfMonger 0.14.4
4
+ * Yanked release 0.14.3 and repushed release binary.
5
+
6
+ ## 2023-03-30: PerfMonger 0.14.3
7
+ * Bugfix
8
+ * [plot] subcommand:
9
+ * Plot memory usage info correctly when available.
10
+
11
+ ## 2021-12-01: PerfMonger 0.14.2
12
+ * Bugfix
13
+ * [player] subcommand:
14
+ * Read stdin if no argument is given (required behaviour for live subcommand)
2
15
 
3
16
  ## 2021-12-01: PerfMonger 0.14.1
4
17
  * Changes
@@ -159,11 +159,6 @@ func parseArgs() {
159
159
 
160
160
  flag.Parse()
161
161
 
162
- if len(flag.Args()) < 1 {
163
- fmt.Fprintln(os.Stderr, "Insufficient argument")
164
- os.Exit(1)
165
- }
166
-
167
162
  option.disk_only_regex = nil
168
163
 
169
164
  if option.disk_only != "" {
@@ -174,7 +169,11 @@ func parseArgs() {
174
169
  }
175
170
  }
176
171
 
177
- option.logfile = flag.Arg(0)
172
+ if len(flag.Args()) < 1 {
173
+ option.logfile = "-"
174
+ } else {
175
+ option.logfile = flag.Arg(0)
176
+ }
178
177
  }
179
178
 
180
179
  func main() {
@@ -183,7 +182,7 @@ func main() {
183
182
 
184
183
  parseArgs()
185
184
 
186
- if option.logfile == "" {
185
+ if option.logfile == "-" {
187
186
  in = os.Stdin
188
187
  } else {
189
188
  f, err := os.Open(option.logfile)
Binary file
Binary file
@@ -517,13 +517,13 @@ EOS
517
517
  gp_filename = @output_prefix + 'mem.gp'
518
518
  dat_filename = @output_prefix + 'mem.dat'
519
519
 
520
- unless File.exists?(dat_filename)
520
+ unless File.exists?(@mem_dat)
521
521
  $stderr.puts("WARN: memory usage info is not available.")
522
522
  return
523
523
  end
524
524
 
525
525
  if @output_type != 'pdf'
526
- img_filename = @output_prefix + 'cpu.' + @output_type
526
+ img_filename = @output_prefix + 'mem.' + @output_type
527
527
  else
528
528
  img_filename = nil
529
529
  end
@@ -1,3 +1,3 @@
1
1
  module PerfMonger
2
- VERSION = "0.14.1"
2
+ VERSION = "0.14.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfmonger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuto HAYAMIZU
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2023-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler