rb-wartslib 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@
19
19
  ** along with this program; if not, write to the Free Software
20
20
  ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
21
  **
22
- ** $Id: scext.c,v 1.18 2007/11/29 01:51:54 youngh Exp $
22
+ ** $Id: scext.c,v 1.19 2007/11/30 01:17:06 youngh Exp $
23
23
  **/
24
24
 
25
25
  #include "ruby.h"
@@ -41,7 +41,7 @@ void Init_wartslibext(void)
41
41
  {
42
42
  mWarts = rb_define_module("Warts");
43
43
 
44
- rb_define_const(mWarts, "WARTS_LIB_VERSION", rb_str_new2("0.9.10"));
44
+ rb_define_const(mWarts, "WARTS_LIB_VERSION", rb_str_new2("0.9.11"));
45
45
  rb_define_const(mWarts, "SCAMPER_VERSION", rb_str_new2(SCAMPER_VERSION));
46
46
 
47
47
  Init_scaddr();
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: rb-wartslib
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.10
6
+ version: 0.9.11
7
7
  date: 2007-11-29 00:00:00 -08:00
8
8
  summary: Ruby extension for reading/writing warts files
9
9
  require_paths:
@@ -29,8 +29,19 @@ post_install_message:
29
29
  authors:
30
30
  - Young Hyun
31
31
  files:
32
- - bin/analyze-order
32
+ - bin/count-traces
33
+ - bin/create-aspath
34
+ - bin/extract-trace-addrs
35
+ - bin/modify-traces
33
36
  - bin/scdump
37
+ - bin/select-traces
38
+ - bin/show-cycles
39
+ - bin/split-traces-by-type
40
+ - bin/stat-traces
41
+ - bin/trace-gap-size-hist
42
+ - bin/trace-timestamps-hist
43
+ - bin/w2tr
44
+ - bin/wcat
34
45
  - bin/wdump
35
46
  - lib/wartslib
36
47
  - lib/wartslib.rb
@@ -46,17 +57,17 @@ files:
46
57
  - ext/sclist.h
47
58
  - ext/sctrace.c
48
59
  - ext/sctrace.h
49
- - COPYING
50
60
  - README
51
61
  - CHANGES
62
+ - COPYING
52
63
  test_files: []
53
64
 
54
65
  rdoc_options: []
55
66
 
56
67
  extra_rdoc_files:
57
- - COPYING
58
68
  - README
59
69
  - CHANGES
70
+ - COPYING
60
71
  executables: []
61
72
 
62
73
  extensions:
@@ -1,37 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- #############################################################################
4
- ## Analyzes the degree to which traces are out of sorted order.
5
- ##
6
- ## $Id: analyze-order,v 1.4 2007/10/09 21:23:10 youngh Exp $
7
- #############################################################################
8
-
9
- require 'rubygems'
10
- require 'wartslib'
11
-
12
- ARGV.each do |path|
13
- file = Warts::File::open path
14
- file.add_filters Warts::File::TRACE
15
-
16
- trace = file.read
17
- next unless trace
18
-
19
- tmax = trace.start
20
- histogram = Hash.new 0
21
-
22
- file.read do |trace|
23
- delta = tmax - trace.start
24
- #print trace.start, "\t", tmax, "\t", delta, "\n"
25
- if delta < 0
26
- delta = 0
27
- tmax = trace.start
28
- end
29
- histogram[delta / 10] += 1
30
- end
31
-
32
- puts ":::: #{path} ::::"
33
- histogram.keys.sort.each do |bin|
34
- delta = bin * 10
35
- printf "%03d-%03d: %d\n", delta, delta + 9, histogram[bin]
36
- end
37
- end