hutch-xamplr 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -488,6 +488,11 @@ module Xampl
488
488
  @@persister.optimise(opts)
489
489
  end
490
490
 
491
+ def Xampl.query_implemented
492
+ raise NoActivePersister unless @@persister
493
+ @@persister.query_implemented
494
+ end
495
+
491
496
  def Xampl.query(hint=false)
492
497
  raise NoActivePersister unless @@persister
493
498
  @@persister.query(hint) { | q | yield q }
@@ -156,6 +156,18 @@ module Xampl
156
156
  raise XamplException.new(:unimplemented)
157
157
  end
158
158
 
159
+ def query_implemented
160
+ false
161
+ end
162
+
163
+ def find_xampl(hint=false)
164
+ if hint then
165
+ return [], "no query made"
166
+ else
167
+ return []
168
+ end
169
+ end
170
+
159
171
  def lookup(klass, pid)
160
172
  #raise XamplException.new(:live_across_rollback) if @rolled_back
161
173
  #puts "#{File.basename(__FILE__)} #{__LINE__} LOOKUP:: klass: #{klass} pid: #{pid}"
@@ -114,6 +114,10 @@ module Xampl
114
114
  TokyoCabinetPersister.kind
115
115
  end
116
116
 
117
+ def query_implemented
118
+ true
119
+ end
120
+
117
121
  def query(hint=false)
118
122
  open_tc_db
119
123
  query = TableQuery.new(@tc_db)
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env ruby
2
1
 
3
2
  require 'fileutils'
4
3
  require 'getoptlong'
@@ -7,6 +6,7 @@ module XamplGenerator
7
6
  require "xamplr"
8
7
  require "xamplr/xampl-hand-generated"
9
8
  require "xamplr/simpleTemplate/simple-template"
9
+ require "xamplr/graphml-out.rb"
10
10
 
11
11
  class Attribute
12
12
  attr_accessor :tag_name
@@ -303,6 +303,10 @@ module XamplGenerator
303
303
  File.open(filename, "w") do |out|
304
304
  root.pp_xml(out)
305
305
  end
306
+
307
+ graphml_out = GraphMLOut.new(@elements_map)
308
+ graphml_out.write_graph_ml(filename)
309
+
306
310
  end
307
311
 
308
312
  def go(args, &eval_context)
@@ -0,0 +1,300 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <graphml xmlns="http://graphml.graphdrawing.org/xmlns/graphml"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xmlns:y="http://www.yworks.com/xml/graphml"
5
+ xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/graphml http://www.yworks.com/xml/schema/graphml/1.0/ygraphml.xsd">
6
+ <key for="node"
7
+ id="d0"
8
+ yfiles.type="nodegraphics"/>
9
+ <key attr.name="description"
10
+ attr.type="string"
11
+ for="node"
12
+ id="d1"/>
13
+ <key for="edge"
14
+ id="d2"
15
+ yfiles.type="edgegraphics"/>
16
+ <key attr.name="description"
17
+ attr.type="string"
18
+ for="edge"
19
+ id="d3"/>
20
+ <key for="graphml"
21
+ id="d4"
22
+ yfiles.type="resources"/>
23
+ <graph edgedefault="directed"
24
+ id="G"
25
+ parse.edges="3"
26
+ parse.nodes="4"
27
+ parse.order="free">
28
+ <node id="n0">
29
+ <data key="d0">
30
+ <y:UMLClassNode>
31
+ <y:Geometry height="102.0"
32
+ width="136.0"
33
+ x="-18.0"
34
+ y="349.0"/>
35
+ <y:Fill color="#FFCC99"
36
+ transparent="false"/>
37
+ <y:BorderStyle color="#000000"
38
+ type="line"
39
+ width="1.0"/>
40
+ <y:NodeLabel alignment="center"
41
+ autoSizePolicy="content"
42
+ fontFamily="Dialog"
43
+ fontSize="13"
44
+ fontStyle="bold"
45
+ hasBackgroundColor="false"
46
+ hasLineColor="false"
47
+ height="19.310546875"
48
+ modelName="internal"
49
+ modelPosition="c"
50
+ textColor="#000000"
51
+ visible="true"
52
+ width="110.818359375"
53
+ x="12.5908203125"
54
+ y="26.1328125">AddressAsChild
55
+ </y:NodeLabel>
56
+ <y:UML clipContent="true"
57
+ constraint=""
58
+ omitDetails="false"
59
+ stereotype="mixin"
60
+ use3DEffect="false">
61
+ <y:AttributeLabel>bar</y:AttributeLabel>
62
+ <y:MethodLabel>foo()</y:MethodLabel>
63
+ </y:UML>
64
+ </y:UMLClassNode>
65
+ </data>
66
+ <data key="d1">UMLClass</data>
67
+ </node>
68
+ <node id="n1">
69
+ <data key="d0">
70
+ <y:UMLClassNode>
71
+ <y:Geometry height="102.0"
72
+ width="111.0"
73
+ x="-5.5"
74
+ y="174.0"/>
75
+ <y:Fill color="#99CCFF"
76
+ transparent="false"/>
77
+ <y:BorderStyle color="#000000"
78
+ type="line"
79
+ width="2.0"/>
80
+ <y:NodeLabel alignment="center"
81
+ autoSizePolicy="content"
82
+ fontFamily="Dialog"
83
+ fontSize="13"
84
+ fontStyle="bold"
85
+ hasBackgroundColor="false"
86
+ hasLineColor="false"
87
+ height="19.310546875"
88
+ modelName="internal"
89
+ modelPosition="c"
90
+ textColor="#000000"
91
+ visible="true"
92
+ width="49.6904296875"
93
+ x="30.65478515625"
94
+ y="26.1328125">Person
95
+ </y:NodeLabel>
96
+ <y:UML clipContent="true"
97
+ constraint=""
98
+ omitDetails="false"
99
+ stereotype="entity, data"
100
+ use3DEffect="false">
101
+ <y:AttributeLabel>bar</y:AttributeLabel>
102
+ <y:MethodLabel>foo()</y:MethodLabel>
103
+ </y:UML>
104
+ </y:UMLClassNode>
105
+ </data>
106
+ <data key="d1">UMLClass</data>
107
+ </node>
108
+ <node id="n2">
109
+ <data key="d0">
110
+ <y:UMLClassNode>
111
+ <y:Geometry height="102.0"
112
+ width="91.0"
113
+ x="4.5"
114
+ y="-1.0"/>
115
+ <y:Fill color="#CCFFCC"
116
+ transparent="false"/>
117
+ <y:BorderStyle color="#000000"
118
+ type="line"
119
+ width="1.0"/>
120
+ <y:NodeLabel alignment="center"
121
+ autoSizePolicy="content"
122
+ fontFamily="Dialog"
123
+ fontSize="13"
124
+ fontStyle="bold"
125
+ hasBackgroundColor="false"
126
+ hasLineColor="false"
127
+ height="19.310546875"
128
+ modelName="internal"
129
+ modelPosition="c"
130
+ textColor="#000000"
131
+ visible="true"
132
+ width="39.83251953125"
133
+ x="25.583740234375"
134
+ y="26.1328125">Class
135
+ </y:NodeLabel>
136
+ <y:UML clipContent="true"
137
+ constraint=""
138
+ omitDetails="false"
139
+ stereotype="simple"
140
+ use3DEffect="false">
141
+ <y:AttributeLabel>bar</y:AttributeLabel>
142
+ <y:MethodLabel>foo()</y:MethodLabel>
143
+ </y:UML>
144
+ </y:UMLClassNode>
145
+ </data>
146
+ <data key="d1">UMLClass</data>
147
+ </node>
148
+ <node id="n3">
149
+ <data key="d0">
150
+ <y:UMLClassNode>
151
+ <y:Geometry height="102.0"
152
+ width="127.0"
153
+ x="161.5"
154
+ y="174.0"/>
155
+ <y:Fill color="#99CCFF"
156
+ transparent="false"/>
157
+ <y:BorderStyle color="#000000"
158
+ type="line"
159
+ width="3.0"/>
160
+ <y:NodeLabel alignment="center"
161
+ autoSizePolicy="content"
162
+ fontFamily="Dialog"
163
+ fontSize="13"
164
+ fontStyle="bold"
165
+ hasBackgroundColor="false"
166
+ hasLineColor="false"
167
+ height="19.310546875"
168
+ modelName="internal"
169
+ modelPosition="c"
170
+ textColor="#000000"
171
+ visible="true"
172
+ width="59.02783203125"
173
+ x="33.986083984375"
174
+ y="26.1328125">Address
175
+ </y:NodeLabel>
176
+ <y:UML clipContent="true"
177
+ constraint=""
178
+ omitDetails="false"
179
+ stereotype="entity, empty"
180
+ use3DEffect="false">
181
+ <y:AttributeLabel>bar</y:AttributeLabel>
182
+ <y:MethodLabel>foo()</y:MethodLabel>
183
+ </y:UML>
184
+ </y:UMLClassNode>
185
+ </data>
186
+ <data key="d1">UMLClass</data>
187
+ </node>
188
+ <edge id="e0"
189
+ source="n1"
190
+ target="n0">
191
+ <data key="d2">
192
+ <y:PolyLineEdge>
193
+ <y:Path sx="0.0"
194
+ sy="0.0"
195
+ tx="0.0"
196
+ ty="0.0"/>
197
+ <y:LineStyle color="#000000"
198
+ type="line"
199
+ width="1.0"/>
200
+ <y:Arrows source="none"
201
+ target="white_delta"/>
202
+ <y:EdgeLabel alignment="center"
203
+ distance="2.0"
204
+ fontFamily="Dialog"
205
+ fontSize="12"
206
+ fontStyle="plain"
207
+ hasBackgroundColor="false"
208
+ hasLineColor="false"
209
+ height="4.0"
210
+ modelName="six_pos"
211
+ modelPosition="tail"
212
+ preferredPlacement="anywhere"
213
+ ratio="0.5"
214
+ textColor="#000000"
215
+ visible="true"
216
+ width="4.0"
217
+ x="2.0"
218
+ y="34.529541015625"></y:EdgeLabel>
219
+ <y:BendStyle smoothed="false"/>
220
+ </y:PolyLineEdge>
221
+ </data>
222
+ <data key="d3">UMLinherits</data>
223
+ </edge>
224
+ <edge id="e1"
225
+ source="n1"
226
+ target="n3">
227
+ <data key="d2">
228
+ <y:PolyLineEdge>
229
+ <y:Path sx="0.0"
230
+ sy="0.0"
231
+ tx="0.0"
232
+ ty="0.0"/>
233
+ <y:LineStyle color="#000000"
234
+ type="line"
235
+ width="2.0"/>
236
+ <y:Arrows source="none"
237
+ target="short"/>
238
+ <y:EdgeLabel alignment="center"
239
+ distance="2.0"
240
+ fontFamily="Dialog"
241
+ fontSize="12"
242
+ fontStyle="plain"
243
+ hasBackgroundColor="false"
244
+ hasLineColor="false"
245
+ height="4.0"
246
+ modelName="six_pos"
247
+ modelPosition="tail"
248
+ preferredPlacement="anywhere"
249
+ ratio="0.5"
250
+ textColor="#000000"
251
+ visible="true"
252
+ width="4.0"
253
+ x="30.000732421875"
254
+ y="2.0"></y:EdgeLabel>
255
+ <y:BendStyle smoothed="false"/>
256
+ </y:PolyLineEdge>
257
+ </data>
258
+ <data key="d3">UMLuses</data>
259
+ </edge>
260
+ <edge id="e2"
261
+ source="n1"
262
+ target="n2">
263
+ <data key="d2">
264
+ <y:PolyLineEdge>
265
+ <y:Path sx="0.0"
266
+ sy="0.0"
267
+ tx="0.0"
268
+ ty="0.0"/>
269
+ <y:LineStyle color="#000000"
270
+ type="line"
271
+ width="1.0"/>
272
+ <y:Arrows source="none"
273
+ target="short"/>
274
+ <y:EdgeLabel alignment="center"
275
+ distance="2.0"
276
+ fontFamily="Dialog"
277
+ fontSize="12"
278
+ fontStyle="plain"
279
+ hasBackgroundColor="false"
280
+ hasLineColor="false"
281
+ height="4.0"
282
+ modelName="six_pos"
283
+ modelPosition="tail"
284
+ preferredPlacement="anywhere"
285
+ ratio="0.5"
286
+ textColor="#000000"
287
+ visible="true"
288
+ width="4.0"
289
+ x="2.0"
290
+ y="-38.529541015625"></y:EdgeLabel>
291
+ <y:BendStyle smoothed="false"/>
292
+ </y:PolyLineEdge>
293
+ </data>
294
+ <data key="d3">UMLuses</data>
295
+ </edge>
296
+ </graph>
297
+ <data key="d4">
298
+ <y:Resources/>
299
+ </data>
300
+ </graphml>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hutch-xamplr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Hutchison
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-04 00:00:00 -07:00
12
+ date: 2009-05-05 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -56,8 +56,6 @@ files:
56
56
  - examples/random-people-shared-addresses/query.rb
57
57
  - examples/random-people-shared-addresses/query2.rb
58
58
  - examples/random-people-shared-addresses/random-names.csv
59
- - examples/random-people-shared-addresses/results.write.BASELINE
60
- - examples/random-people-shared-addresses/results.write.NEW_ATTR_ENCODING
61
59
  - examples/random-people-shared-addresses/settings.rb
62
60
  - examples/random-people-shared-addresses/what-to-query-on.rb
63
61
  - examples/random-people-shared-addresses/xampl-gen.rb
@@ -77,8 +75,6 @@ files:
77
75
  - examples/read-testing/Makefile
78
76
  - examples/read-testing/load.rb
79
77
  - examples/read-testing/read.rb
80
- - examples/read-testing/results.read.BASELINE
81
- - examples/read-testing/results.read.FAST
82
78
  - examples/read-testing/rrr.rb
83
79
  - examples/read-testing/settings.rb
84
80
  - examples/read-testing/xampl-gen.rb
@@ -103,6 +99,7 @@ files:
103
99
  - lib/xamplr/gen.elements.xml
104
100
  - lib/xamplr/generate-elements.rb
105
101
  - lib/xamplr/generator.rb
102
+ - lib/xamplr/graphml-out.rb
106
103
  - lib/xamplr/handwritten/example.rb
107
104
  - lib/xamplr/handwritten/hand-example.rb
108
105
  - lib/xamplr/handwritten/test-handwritten.rb
@@ -182,6 +179,7 @@ files:
182
179
  - lib/xamplr/xml/example.xml
183
180
  - lib/xamplr/xml/options.xml
184
181
  - lib/xamplr/xml/uche.xml
182
+ - lib/xamplr/yEd-sample.graphml
185
183
  - test/test_helper.rb
186
184
  - test/xamplr_test.rb
187
185
  has_rdoc: true
@@ -1,298 +0,0 @@
1
- time ruby batch-load-users.rb
2
- transaction ending...
3
- Thread ID: 106710
4
- Total: 76.211057
5
-
6
- %self total self wait child calls name
7
- 9.12 7.18 6.95 0.00 0.24 30000 TokyoCabinet::TDB#put (ruby_runtime:0}
8
- 7.76 5.91 5.91 0.00 0.00 550000 String#gsub! (ruby_runtime:0}
9
- 7.41 29.47 5.65 0.00 23.82 58334 Array#each (ruby_runtime:0}
10
- 6.66 12.96 5.08 0.00 7.88 110000 Xampl::PersistXML#attr_esc (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:45}
11
- 6.39 48.04 4.87 0.00 43.17 40000 Xampl::Visitor#start (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:58}
12
- 4.32 4.50 3.30 0.00 1.21 120000 Xampl::XamplPersistedObject#accessed (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-persisted-object.rb:13}
13
- 3.32 2.53 2.53 0.00 0.00 870000 String#<< (ruby_runtime:0}
14
- 2.78 75.46 2.12 0.00 73.34 20000 Xampl::TokyoCabinetPersister#write (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:324}
15
- 2.30 29.51 1.75 0.00 27.75 30000 Xampl::PersistXML#start_element (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:109}
16
- 2.25 2.62 1.71 0.00 0.90 40000 Xampl::PersistXML#register_ns (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:30}
17
- 2.14 8.55 1.63 0.00 6.92 20000 Xampl::Visitor#start-1 (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:58}
18
- 1.76 1.99 1.34 0.00 0.65 260000 Hash#[] (ruby_runtime:0}
19
- 1.38 1.06 1.06 0.00 0.00 430000 Kernel#hash (ruby_runtime:0}
20
- 1.32 9.30 1.01 0.00 8.30 50002 Xampl::TokyoCabinetPersister#note_errors (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:13}
21
- 1.29 0.99 0.99 0.00 0.00 40000 Xampl::Visitor#reset (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:10}
22
- 1.19 1.21 0.91 0.00 0.30 120000 Xampl::XamplObject#invalid (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:41}
23
- 1.15 1.20 0.88 0.00 0.32 150000 Hash#[]= (ruby_runtime:0}
24
- 1.06 1.41 0.81 0.00 0.60 110000 Kernel#dup (ruby_runtime:0}
25
- 1.01 0.77 0.77 0.00 0.00 160000 Xampl::Visitor#method_missing (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:35}
26
- 0.99 3.64 0.75 0.00 2.88 20000 Hash#each_key (ruby_runtime:0}
27
- 0.86 2.22 0.66 0.00 1.56 11666 Array#each-1 (ruby_runtime:0}
28
- 0.85 1.28 0.65 0.00 0.63 20000 Xampl::PersistXML#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:7}
29
- 0.84 1.04 0.64 0.00 0.40 30000 Xampl::PersistXML#show_attributes (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:100}
30
- 0.84 4.04 0.64 0.00 3.40 80000 Class#new (ruby_runtime:0}
31
- 0.83 0.63 0.63 0.00 0.00 250000 Kernel#kind_of? (ruby_runtime:0}
32
- 0.79 0.60 0.60 0.00 0.00 1 TokyoCabinet::TDB#trancommit (ruby_runtime:0}
33
- 0.75 0.57 0.57 0.00 0.00 230000 Array#[] (ruby_runtime:0}
34
- 0.70 0.72 0.54 0.00 0.19 20000 Xampl::TableQuery#add_condition (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:571}
35
- 0.69 0.67 0.52 0.00 0.14 30000 Xampl::ResetIsChanged#before_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:33}
36
- 0.64 20.69 0.49 0.00 20.20 20000 Xampl::PersistXML#attribute (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:72}
37
- 0.63 0.48 0.48 0.00 0.00 200000 Kernel#== (ruby_runtime:0}
38
- 0.61 0.46 0.46 0.00 0.00 190000 Fixnum#< (ruby_runtime:0}
39
- 0.60 1.25 0.46 0.00 0.80 60000 Xampl::Visitor#substitute_in_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:39}
40
- 0.60 43.47 0.46 0.00 43.02 20000 Xampl::Persister#represent (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persister.rb:123}
41
- 0.60 9.03 0.45 0.00 8.58 20000 Xampl::ResetIsChanged#start (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:22}
42
- 0.57 30.81 0.43 0.00 30.38 30000 Xampl::PersistXML#before_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:191}
43
- 0.57 0.43 0.43 0.00 0.00 30000 <Class::File>#join (ruby_runtime:0}
44
- 0.56 0.42 0.42 0.00 0.00 30000 String#split (ruby_runtime:0}
45
- 0.55 0.42 0.42 0.00 0.00 130000 Kernel#respond_to? (ruby_runtime:0}
46
- 0.49 0.66 0.37 0.00 0.29 20000 Hash#each-1 (ruby_runtime:0}
47
- 0.46 0.35 0.35 0.00 0.00 20000 TokyoCabinet::TDBQRY#searchout (ruby_runtime:0}
48
- 0.44 0.53 0.34 0.00 0.19 40000 RandomPeople::Address#substitute_in_visit (./xampl_generated_code/RandomPeople.rb:826}
49
- 0.42 0.47 0.32 0.00 0.15 60000 Hash#delete (ruby_runtime:0}
50
- 0.42 2.73 0.32 0.00 2.41 10000 Xampl::PersistXML#persist_attribute (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:84}
51
- 0.42 0.32 0.32 0.00 0.00 130000 Fixnum#== (ruby_runtime:0}
52
- 0.41 0.32 0.32 0.00 0.00 110000 String#initialize_copy (ruby_runtime:0}
53
- 0.40 0.30 0.30 0.00 0.00 110000 Kernel#instance_variable_get (ruby_runtime:0}
54
- 0.40 1.40 0.30 0.00 1.10 20000 Xampl::PersistXML#done (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:144}
55
- 0.39 3.32 0.30 0.00 3.02 10000 RandomPeople::Person#describe_yourself (./people.rb:10}
56
- 0.39 0.45 0.30 0.00 0.15 60000 Hash#has_key? (ruby_runtime:0}
57
- 0.39 0.57 0.30 0.00 0.27 40000 Class#new-1 (ruby_runtime:0}
58
- 0.38 3.98 0.29 0.00 3.69 20000 Set#each (/opt/local/lib/ruby/1.8/set.rb:193}
59
- 0.38 1.27 0.29 0.00 0.99 40000 Xampl::Visitor#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:6}
60
- 0.37 0.28 0.28 0.00 0.00 110000 <Class::String>#allocate (ruby_runtime:0}
61
- 0.37 0.28 0.28 0.00 0.00 110000 Array#<< (ruby_runtime:0}
62
- 0.37 0.28 0.28 0.00 0.00 110000 String#to_s (ruby_runtime:0}
63
- 0.36 0.59 0.28 0.00 0.31 20000 Set#initialize (/opt/local/lib/ruby/1.8/set.rb:68}
64
- 0.36 0.27 0.27 0.00 0.00 110000 Array#length (ruby_runtime:0}
65
- 0.36 0.88 0.27 0.00 0.61 10000 Xampl::PersistXML#end_element (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:130}
66
- 0.35 42.72 0.26 0.00 42.45 20000 Xampl::XamplObject#persist (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:181}
67
- 0.33 0.25 0.25 0.00 0.00 100000 <Class::Object>#allocate (ruby_runtime:0}
68
- 0.33 0.91 0.25 0.00 0.66 20000 Xampl::PersistXML#define_ns (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:136}
69
- 0.33 0.25 0.25 0.00 0.00 30000 Array#join (ruby_runtime:0}
70
- 0.33 1.50 0.25 0.00 1.25 20000 Xampl::PersistXML#after_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:199}
71
- 0.33 16.97 0.25 0.00 16.72 20000 Xampl::PersistXML#before_visit_without_content (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:148}
72
- 0.31 0.24 0.24 0.00 0.00 30000 Hash#keys (ruby_runtime:0}
73
- 0.31 0.54 0.23 0.00 0.31 20000 Xampl::TableQuery#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:480}
74
- 0.29 13.09 0.22 0.00 12.87 10000 Xampl::PersistXML#before_visit_data_content (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:164}
75
- 0.29 2.27 0.22 0.00 2.05 10000 Xampl::ResetIsChanged#start-1 (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:22}
76
- 0.28 0.21 0.21 0.00 0.00 20000 Kernel#sprintf (ruby_runtime:0}
77
- 0.28 0.21 0.21 0.00 0.00 60000 Module#name (ruby_runtime:0}
78
- 0.28 0.21 0.21 0.00 0.00 20000 Hash#initialize_copy (ruby_runtime:0}
79
- 0.27 10.24 0.21 0.00 10.03 20000 Xampl::XamplObject#changes_accepted (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:45}
80
- 0.27 0.20 0.20 0.00 0.00 80000 Hash#default (ruby_runtime:0}
81
- 0.26 0.20 0.20 0.00 0.00 40000 RandomPeople::Address#get_the_index (./xampl_generated_code/RandomPeople.rb:818}
82
- 0.26 0.20 0.20 0.00 0.00 40000 RandomPeople::Person#get_the_index (./xampl_generated_code/RandomPeople.rb:595}
83
- 0.26 0.96 0.20 0.00 0.76 20000 Xampl::XamplWithDataContent#children (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:195}
84
- 0.26 0.20 0.20 0.00 0.00 40000 Xampl::XamplPersistedObject#persist_required (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-persisted-object.rb:9}
85
- 0.25 0.47 0.19 0.00 0.27 20000 Hash#merge (ruby_runtime:0}
86
- 0.25 0.19 0.19 0.00 0.00 40000 Xampl::Visitor#around_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:51}
87
- 0.25 0.19 0.19 0.00 0.00 40000 RandomPeople::Address#attributes (./xampl_generated_code/RandomPeople.rb:810}
88
- 0.25 0.94 0.19 0.00 0.75 20000 RandomPeople::AddressAsChild#address (./xampl_generated_code/RandomPeople.rb:166}
89
- 0.25 0.93 0.19 0.00 0.74 20000 RandomPeople::Address#state (./xampl_generated_code/RandomPeople.rb:711}
90
- 0.25 2.07 0.19 0.00 1.88 10000 RandomPeople::Address#describe_yourself (./people.rb:24}
91
- 0.25 0.94 0.19 0.00 0.75 20000 RandomPeople::Address#city (./xampl_generated_code/RandomPeople.rb:700}
92
- 0.23 0.18 0.18 0.00 0.00 70000 String#length (ruby_runtime:0}
93
- 0.22 0.27 0.17 0.00 0.10 20000 RandomPeople::Person#substitute_in_visit (./xampl_generated_code/RandomPeople.rb:603}
94
- 0.22 0.26 0.17 0.00 0.10 20000 RandomPeople::Address#visit (./xampl_generated_code/RandomPeople.rb:834}
95
- 0.21 0.26 0.16 0.00 0.10 20000 RandomPeople::Person#visit (./xampl_generated_code/RandomPeople.rb:611}
96
- 0.21 0.51 0.16 0.00 0.35 20000 Xampl::TableQuery#searchout (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:502}
97
- 0.20 0.15 0.15 0.00 0.00 60000 Kernel#class (ruby_runtime:0}
98
- 0.19 0.40 0.15 0.00 0.25 20000 Xampl::Visitor#after_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:47}
99
- 0.19 17.12 0.15 0.00 16.97 20000 Xampl::XamplWithoutContent#before_visit_by_element_kind (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:21}
100
- 0.19 0.79 0.15 0.00 0.64 20000 Xampl::ResetIsChanged#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:18}
101
- 0.19 0.21 0.15 0.00 0.06 20000 <Module::Xampl::XamplObject>#lookup_preferred_ns_prefix (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:23}
102
- 0.19 75.61 0.15 0.00 75.46 1 Hash#each (ruby_runtime:0}
103
- 0.19 0.20 0.14 0.00 0.05 20000 IndexedArray#first (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/indexed-array.rb:73}
104
- 0.16 0.12 0.12 0.00 0.00 40000 <Class::Hash>#allocate (ruby_runtime:0}
105
- 0.14 0.11 0.11 0.00 0.00 20000 TokyoCabinet::TDBQRY#initialize (ruby_runtime:0}
106
- 0.14 0.10 0.10 0.00 0.00 20000 Xampl::XamplWithoutContent#children (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:17}
107
- 0.13 0.15 0.10 0.00 0.05 20000 Kernel#=== (ruby_runtime:0}
108
- 0.13 0.10 0.10 0.00 0.00 20000 RandomPeople::Person#tag (./xampl_generated_code/RandomPeople.rb:567}
109
- 0.13 0.10 0.10 0.00 0.00 20000 RandomPeople::Address#tag (./xampl_generated_code/RandomPeople.rb:790}
110
- 0.13 0.98 0.10 0.00 0.88 10000 Xampl::PersistXML#after_visit_data_content (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:174}
111
- 0.13 0.48 0.10 0.00 0.38 10000 RandomPeople::Person#surname (./xampl_generated_code/RandomPeople.rb:475}
112
- 0.13 0.10 0.10 0.00 0.00 20000 RandomPeople::Person#ns (./xampl_generated_code/RandomPeople.rb:571}
113
- 0.13 0.48 0.10 0.00 0.38 10000 RandomPeople::Address#street_address (./xampl_generated_code/RandomPeople.rb:689}
114
- 0.13 0.47 0.10 0.00 0.37 10000 RandomPeople::Person#email (./xampl_generated_code/RandomPeople.rb:486}
115
- 0.13 0.17 0.10 0.00 0.08 10000 Set#<< (/opt/local/lib/ruby/1.8/set.rb:201}
116
- 0.13 0.10 0.10 0.00 0.00 20000 RandomPeople::Address#ns (./xampl_generated_code/RandomPeople.rb:794}
117
- 0.13 0.47 0.10 0.00 0.37 10000 RandomPeople::Address#postal_code (./xampl_generated_code/RandomPeople.rb:722}
118
- 0.13 0.10 0.10 0.00 0.00 20000 RandomPeople::Person#attributes (./xampl_generated_code/RandomPeople.rb:587}
119
- 0.10 0.08 0.08 0.00 0.00 20000 TokyoCabinet::TDBQRY#addcond (ruby_runtime:0}
120
- 0.10 0.13 0.08 0.00 0.05 10000 Xampl::XamplWithoutContent#after_visit_by_element_kind (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:29}
121
- 0.10 0.13 0.08 0.00 0.05 10000 RandomPeople::Address#after_visit (./xampl_generated_code/RandomPeople.rb:838}
122
- 0.10 0.13 0.08 0.00 0.05 10000 RandomPeople::Person#after_visit (./xampl_generated_code/RandomPeople.rb:615}
123
- 0.10 0.08 0.08 0.00 0.00 20000 String#[] (ruby_runtime:0}
124
- 0.10 1.06 0.08 0.00 0.98 10000 Xampl::XamplWithDataContent#after_visit_by_element_kind (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:186}
125
- 0.10 13.16 0.07 0.00 13.09 10000 Xampl::XamplWithDataContent#before_visit_by_element_kind (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:178}
126
- 0.07 0.05 0.05 0.00 0.00 20000 Fixnum#+ (ruby_runtime:0}
127
- 0.07 0.05 0.05 0.00 0.00 20000 Hash#initialize (ruby_runtime:0}
128
- 0.07 0.05 0.05 0.00 0.00 20000 Kernel#is_a? (ruby_runtime:0}
129
- 0.07 0.05 0.05 0.00 0.00 10000 RandomPeople::Person#default_persister_format (./xampl_generated_code/RandomPeople.rb:408}
130
- 0.07 0.05 0.05 0.00 0.00 20000 Array#first (ruby_runtime:0}
131
- 0.07 0.05 0.05 0.00 0.00 20000 Kernel#block_given? (ruby_runtime:0}
132
- 0.07 0.05 0.05 0.00 0.00 20000 NilClass#nil? (ruby_runtime:0}
133
- 0.07 0.05 0.05 0.00 0.00 10000 RandomPeople::Address#default_persister_format (./xampl_generated_code/RandomPeople.rb:627}
134
- 0.07 0.05 0.05 0.00 0.00 20000 Symbol#=== (ruby_runtime:0}
135
- 0.06 0.05 0.05 0.00 0.00 20000 String#size (ruby_runtime:0}
136
- 0.06 0.05 0.05 0.00 0.00 10000 RandomPeople::Address#indexed_by (./xampl_generated_code/RandomPeople.rb:814}
137
- 0.05 0.04 0.04 0.00 0.00 10000 TokyoCabinet::TDB#genuid (ruby_runtime:0}
138
- 0.04 0.03 0.03 0.00 0.00 10000 Symbol#to_s (ruby_runtime:0}
139
- 0.03 0.03 0.03 0.00 0.00 10000 String#== (ruby_runtime:0}
140
- 0.00 0.00 0.00 0.00 0.00 1 TokyoCabinet::TDB#tranbegin (ruby_runtime:0}
141
- 0.00 76.21 0.00 0.00 76.21 1 Xampl::TokyoCabinetPersister#do_sync_write (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:281}
142
- 0.00 76.21 0.00 0.00 76.21 1 Xampl::TokyoCabinetPersister#do_sync_write_work (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:289}
143
- 0.00 0.00 0.00 0.00 0.00 1 Float#to_s (ruby_runtime:0}
144
- 0.00 0.00 0.00 0.00 0.00 1 Xampl::TokyoCabinetPersister#open_tc_db (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:56}
145
- 0.00 0.00 0.00 0.00 0.00 1 <Class::Time>#now (ruby_runtime:0}
146
- 0.00 0.00 0.00 0.00 0.00 1 Time#initialize (ruby_runtime:0}
147
- 0.00 0.00 0.00 0.00 0.00 1 Time#to_f (ruby_runtime:0}
148
- 0.00 0.00 0.00 0.00 0.00 1 <Class::Time>#allocate (ruby_runtime:0}
149
-
150
-
151
- tokyo-cabinet.rb:286 stop this profiler
152
- iter: 0 in 80.245884
153
- transaction ending...
154
- Thread ID: 106710
155
- Total: 47.170992
156
-
157
- %self total self wait child calls name
158
- 9.79 4.69 4.62 0.00 0.08 20000 TokyoCabinet::TDB#put (ruby_runtime:0}
159
- 8.25 3.89 3.89 0.00 0.00 300000 String#gsub! (ruby_runtime:0}
160
- 6.56 20.26 3.09 0.00 17.17 30000 Array#each (ruby_runtime:0}
161
- 5.88 7.90 2.77 0.00 5.13 60000 Xampl::PersistXML#attr_esc (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:45}
162
- 5.24 30.58 2.47 0.00 28.11 20000 Xampl::Visitor#start (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:58}
163
- 4.65 3.00 2.19 0.00 0.80 80000 Xampl::XamplPersistedObject#accessed (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-persisted-object.rb:13}
164
- 3.83 1.81 1.81 0.00 0.00 510000 String#<< (ruby_runtime:0}
165
- 3.29 8.63 1.55 0.00 7.07 20000 Xampl::Visitor#start-1 (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:58}
166
- 2.60 46.54 1.23 0.00 45.32 10000 Xampl::TokyoCabinetPersister#write (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:324}
167
- 2.50 17.95 1.18 0.00 16.77 20000 Xampl::PersistXML#start_element (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:109}
168
- 2.46 1.71 1.16 0.00 0.55 30000 Xampl::PersistXML#register_ns (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:30}
169
- 1.85 1.30 0.87 0.00 0.42 170000 Hash#[] (ruby_runtime:0}
170
- 1.51 0.71 0.71 0.00 0.00 290000 Kernel#hash (ruby_runtime:0}
171
- 1.38 2.47 0.65 0.00 1.82 10000 Array#each-1 (ruby_runtime:0}
172
- 1.29 6.14 0.61 0.00 5.54 30002 Xampl::TokyoCabinetPersister#note_errors (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:13}
173
- 1.27 0.80 0.60 0.00 0.20 80000 Xampl::XamplObject#invalid (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:41}
174
- 1.17 0.55 0.55 0.00 0.00 1 TokyoCabinet::TDB#trancommit (ruby_runtime:0}
175
- 1.08 0.73 0.51 0.00 0.22 100000 Hash#[]= (ruby_runtime:0}
176
- 1.05 0.50 0.50 0.00 0.00 20000 Xampl::Visitor#reset (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:10}
177
- 1.02 3.51 0.48 0.00 3.02 10000 Hash#each_key (ruby_runtime:0}
178
- 0.98 3.47 0.46 0.00 3.01 10000 RandomPeople::Person#describe_yourself (./people.rb:10}
179
- 0.94 0.93 0.44 0.00 0.49 60000 Kernel#dup (ruby_runtime:0}
180
- 0.91 0.43 0.43 0.00 0.00 90000 Xampl::Visitor#method_missing (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:35}
181
- 0.91 0.61 0.43 0.00 0.18 20000 Xampl::PersistXML#show_attributes (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:100}
182
- 0.86 0.40 0.40 0.00 0.00 160000 Kernel#kind_of? (ruby_runtime:0}
183
- 0.76 0.36 0.36 0.00 0.00 20000 String#split (ruby_runtime:0}
184
- 0.74 0.44 0.35 0.00 0.10 20000 Xampl::ResetIsChanged#before_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:33}
185
- 0.71 0.33 0.33 0.00 0.00 60000 String#initialize_copy (ruby_runtime:0}
186
- 0.69 0.32 0.32 0.00 0.00 130000 Array#[] (ruby_runtime:0}
187
- 0.68 1.97 0.32 0.00 1.65 40000 Class#new (ruby_runtime:0}
188
- 0.68 2.98 0.32 0.00 2.67 10000 Xampl::PersistXML#persist_attribute (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:84}
189
- 0.64 0.83 0.30 0.00 0.53 40000 Xampl::Visitor#substitute_in_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:39}
190
- 0.62 0.29 0.29 0.00 0.00 120000 Kernel#== (ruby_runtime:0}
191
- 0.61 19.01 0.29 0.00 18.72 20000 Xampl::PersistXML#before_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:191}
192
- 0.58 0.88 0.27 0.00 0.61 10000 Xampl::PersistXML#end_element (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:130}
193
- 0.57 0.36 0.27 0.00 0.09 10000 Xampl::TableQuery#add_condition (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:571}
194
- 0.57 0.27 0.27 0.00 0.00 110000 Fixnum#< (ruby_runtime:0}
195
- 0.56 0.58 0.26 0.00 0.32 10000 Xampl::PersistXML#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:7}
196
- 0.52 11.09 0.24 0.00 10.85 10000 Xampl::PersistXML#attribute (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:72}
197
- 0.49 5.92 0.23 0.00 5.69 10000 Xampl::ResetIsChanged#start (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:22}
198
- 0.48 26.72 0.23 0.00 26.49 10000 Xampl::Persister#represent (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persister.rb:123}
199
- 0.48 0.22 0.22 0.00 0.00 70000 Kernel#respond_to? (ruby_runtime:0}
200
- 0.47 0.22 0.22 0.00 0.00 90000 Fixnum#== (ruby_runtime:0}
201
- 0.47 13.58 0.22 0.00 13.36 10000 Xampl::PersistXML#before_visit_data_content (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:164}
202
- 0.46 2.10 0.22 0.00 1.88 10000 Xampl::ResetIsChanged#start-1 (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:22}
203
- 0.46 0.31 0.22 0.00 0.10 40000 Hash#delete (ruby_runtime:0}
204
- 0.44 0.21 0.21 0.00 0.00 10000 TokyoCabinet::TDBQRY#searchout (ruby_runtime:0}
205
- 0.42 0.30 0.20 0.00 0.10 40000 Hash#has_key? (ruby_runtime:0}
206
- 0.42 0.20 0.20 0.00 0.00 40000 RandomPeople::Person#get_the_index (./xampl_generated_code/RandomPeople.rb:595}
207
- 0.42 0.96 0.20 0.00 0.76 20000 Xampl::XamplWithDataContent#children (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:195}
208
- 0.40 0.94 0.19 0.00 0.74 20000 RandomPeople::AddressAsChild#address (./xampl_generated_code/RandomPeople.rb:166}
209
- 0.36 0.27 0.17 0.00 0.10 20000 RandomPeople::Person#substitute_in_visit (./xampl_generated_code/RandomPeople.rb:603}
210
- 0.36 0.17 0.17 0.00 0.00 60000 Kernel#instance_variable_get (ruby_runtime:0}
211
- 0.35 0.26 0.17 0.00 0.10 20000 RandomPeople::Address#substitute_in_visit (./xampl_generated_code/RandomPeople.rb:826}
212
- 0.34 0.26 0.16 0.00 0.10 20000 RandomPeople::Person#visit (./xampl_generated_code/RandomPeople.rb:611}
213
- 0.33 0.16 0.16 0.00 0.00 60000 <Class::String>#allocate (ruby_runtime:0}
214
- 0.33 0.15 0.15 0.00 0.00 60000 String#to_s (ruby_runtime:0}
215
- 0.32 0.15 0.15 0.00 0.00 60000 Array#<< (ruby_runtime:0}
216
- 0.32 0.58 0.15 0.00 0.43 10000 Xampl::PersistXML#done (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:144}
217
- 0.32 0.29 0.15 0.00 0.14 20000 Class#new-1 (ruby_runtime:0}
218
- 0.32 0.15 0.15 0.00 0.00 60000 Array#length (ruby_runtime:0}
219
- 0.31 0.15 0.15 0.00 0.00 30000 Xampl::XamplPersistedObject#persist_required (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-persisted-object.rb:9}
220
- 0.31 3.67 0.14 0.00 3.53 10000 Set#each (/opt/local/lib/ruby/1.8/set.rb:193}
221
- 0.31 0.64 0.14 0.00 0.50 20000 Xampl::Visitor#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:6}
222
- 0.31 0.19 0.14 0.00 0.05 20000 IndexedArray#first (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/indexed-array.rb:73}
223
- 0.30 0.14 0.14 0.00 0.00 40000 Module#name (ruby_runtime:0}
224
- 0.30 0.30 0.14 0.00 0.16 10000 Set#initialize (/opt/local/lib/ruby/1.8/set.rb:68}
225
- 0.28 26.34 0.13 0.00 26.21 10000 Xampl::XamplObject#persist (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:181}
226
- 0.27 0.13 0.13 0.00 0.00 50000 String#length (ruby_runtime:0}
227
- 0.27 0.13 0.13 0.00 0.00 50000 <Class::Object>#allocate (ruby_runtime:0}
228
- 0.27 0.13 0.13 0.00 0.00 50000 Hash#default (ruby_runtime:0}
229
- 0.27 0.34 0.13 0.00 0.21 10000 Xampl::PersistXML#define_ns (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:136}
230
- 0.26 0.12 0.12 0.00 0.00 20000 <Class::File>#join (ruby_runtime:0}
231
- 0.26 0.21 0.12 0.00 0.09 10000 Hash#each-1 (ruby_runtime:0}
232
- 0.26 1.21 0.12 0.00 1.08 10000 Xampl::PersistXML#after_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:199}
233
- 0.26 4.93 0.12 0.00 4.81 10000 Xampl::PersistXML#before_visit_without_content (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:148}
234
- 0.25 0.27 0.12 0.00 0.16 10000 Xampl::TableQuery#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:480}
235
- 0.22 6.53 0.11 0.00 6.42 10000 Xampl::XamplObject#changes_accepted (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:45}
236
- 0.22 0.10 0.10 0.00 0.00 40000 Kernel#class (ruby_runtime:0}
237
- 0.21 0.18 0.10 0.00 0.08 10000 Hash#merge (ruby_runtime:0}
238
- 0.21 0.10 0.10 0.00 0.00 20000 RandomPeople::Person#tag (./xampl_generated_code/RandomPeople.rb:567}
239
- 0.21 0.48 0.10 0.00 0.38 10000 RandomPeople::Person#surname (./xampl_generated_code/RandomPeople.rb:475}
240
- 0.21 0.10 0.10 0.00 0.00 20000 RandomPeople::Person#ns (./xampl_generated_code/RandomPeople.rb:571}
241
- 0.21 0.98 0.10 0.00 0.88 10000 Xampl::PersistXML#after_visit_data_content (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persist-to-xml.rb:174}
242
- 0.21 0.10 0.10 0.00 0.00 20000 RandomPeople::Address#attributes (./xampl_generated_code/RandomPeople.rb:810}
243
- 0.20 0.10 0.10 0.00 0.00 20000 Xampl::Visitor#around_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:51}
244
- 0.20 0.17 0.10 0.00 0.08 10000 Set#<< (/opt/local/lib/ruby/1.8/set.rb:201}
245
- 0.20 0.47 0.10 0.00 0.37 10000 RandomPeople::Address#city (./xampl_generated_code/RandomPeople.rb:700}
246
- 0.20 0.47 0.10 0.00 0.37 10000 RandomPeople::Person#email (./xampl_generated_code/RandomPeople.rb:486}
247
- 0.20 0.10 0.10 0.00 0.00 20000 RandomPeople::Person#attributes (./xampl_generated_code/RandomPeople.rb:587}
248
- 0.20 0.47 0.09 0.00 0.37 10000 RandomPeople::Address#state (./xampl_generated_code/RandomPeople.rb:711}
249
- 0.17 0.08 0.08 0.00 0.00 20000 Array#join (ruby_runtime:0}
250
- 0.17 0.29 0.08 0.00 0.21 10000 Xampl::TableQuery#searchout (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:502}
251
- 0.16 0.13 0.08 0.00 0.05 10000 RandomPeople::Person#after_visit (./xampl_generated_code/RandomPeople.rb:615}
252
- 0.16 0.08 0.08 0.00 0.00 20000 Hash#keys (ruby_runtime:0}
253
- 0.16 1.05 0.07 0.00 0.98 10000 Xampl::XamplWithDataContent#after_visit_by_element_kind (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:186}
254
- 0.16 46.62 0.07 0.00 46.54 1 Hash#each (ruby_runtime:0}
255
- 0.16 0.40 0.07 0.00 0.32 10000 Xampl::ResetIsChanged#initialize (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitors.rb:18}
256
- 0.16 0.20 0.07 0.00 0.13 10000 Xampl::Visitor#after_visit (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/visitor.rb:47}
257
- 0.16 13.65 0.07 0.00 13.58 10000 Xampl::XamplWithDataContent#before_visit_by_element_kind (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:178}
258
- 0.16 5.00 0.07 0.00 4.93 10000 Xampl::XamplWithoutContent#before_visit_by_element_kind (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/mixins.rb:21}
259
- 0.16 0.11 0.07 0.00 0.03 10000 <Module::Xampl::XamplObject>#lookup_preferred_ns_prefix (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/xampl-object.rb:23}
260
- 0.13 0.06 0.06 0.00 0.00 20000 <Class::Hash>#allocate (ruby_runtime:0}
261
- 0.12 0.06 0.06 0.00 0.00 10000 TokyoCabinet::TDBQRY#initialize (ruby_runtime:0}
262
- 0.11 0.05 0.05 0.00 0.00 10000 RandomPeople::Address#get_the_index (./xampl_generated_code/RandomPeople.rb:818}
263
- 0.11 0.05 0.05 0.00 0.00 20000 Array#first (ruby_runtime:0}
264
- 0.11 0.05 0.05 0.00 0.00 10000 RandomPeople::Person#default_persister_format (./xampl_generated_code/RandomPeople.rb:408}
265
- 0.11 0.07 0.05 0.00 0.02 10000 Kernel#=== (ruby_runtime:0}
266
- 0.10 0.05 0.05 0.00 0.00 10000 RandomPeople::Address#tag (./xampl_generated_code/RandomPeople.rb:790}
267
- 0.10 0.05 0.05 0.00 0.00 10000 RandomPeople::Address#ns (./xampl_generated_code/RandomPeople.rb:794}
268
- 0.10 0.05 0.05 0.00 0.00 10000 Kernel#sprintf (ruby_runtime:0}
269
- 0.10 0.05 0.05 0.00 0.00 10000 RandomPeople::Address#indexed_by (./xampl_generated_code/RandomPeople.rb:814}
270
- 0.10 0.05 0.05 0.00 0.00 10000 Hash#initialize_copy (ruby_runtime:0}
271
- 0.08 0.04 0.04 0.00 0.00 10000 TokyoCabinet::TDBQRY#addcond (ruby_runtime:0}
272
- 0.08 0.04 0.04 0.00 0.00 10000 TokyoCabinet::TDB#genuid (ruby_runtime:0}
273
- 0.08 0.04 0.04 0.00 0.00 10000 String#[] (ruby_runtime:0}
274
- 0.07 0.03 0.03 0.00 0.00 10000 Symbol#to_s (ruby_runtime:0}
275
- 0.06 0.03 0.03 0.00 0.00 10000 Fixnum#+ (ruby_runtime:0}
276
- 0.06 0.03 0.03 0.00 0.00 10000 String#== (ruby_runtime:0}
277
- 0.06 0.03 0.03 0.00 0.00 10000 Hash#initialize (ruby_runtime:0}
278
- 0.06 0.03 0.03 0.00 0.00 10000 NilClass#nil? (ruby_runtime:0}
279
- 0.05 0.03 0.03 0.00 0.00 10000 Kernel#is_a? (ruby_runtime:0}
280
- 0.05 0.02 0.02 0.00 0.00 10000 Kernel#block_given? (ruby_runtime:0}
281
- 0.05 0.02 0.02 0.00 0.00 10000 Symbol#=== (ruby_runtime:0}
282
- 0.05 0.02 0.02 0.00 0.00 10000 String#size (ruby_runtime:0}
283
- 0.00 0.00 0.00 0.00 0.00 1 TokyoCabinet::TDB#tranbegin (ruby_runtime:0}
284
- 0.00 47.17 0.00 0.00 47.17 1 Xampl::TokyoCabinetPersister#do_sync_write_work (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:289}
285
- 0.00 47.17 0.00 0.00 47.17 1 Xampl::TokyoCabinetPersister#do_sync_write (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:281}
286
- 0.00 0.00 0.00 0.00 0.00 1 Float#to_s (ruby_runtime:0}
287
- 0.00 0.00 0.00 0.00 0.00 1 Xampl::TokyoCabinetPersister#open_tc_db (/Library/Ruby/Gems/gems/hutch-xamplr-1.0.4/lib/xamplr/persisters/tokyo-cabinet.rb:56}
288
- 0.00 0.00 0.00 0.00 0.00 1 <Class::Time>#now (ruby_runtime:0}
289
- 0.00 0.00 0.00 0.00 0.00 1 <Class::Time>#allocate (ruby_runtime:0}
290
- 0.00 0.00 0.00 0.00 0.00 1 Time#initialize (ruby_runtime:0}
291
- 0.00 0.00 0.00 0.00 0.00 1 Time#to_f (ruby_runtime:0}
292
-
293
-
294
- tokyo-cabinet.rb:286 stop this profiler
295
- iter: 1 in 109.981024
296
- "parsed in 0.780894, processed in: 190.227083"
297
- created addresses: 10000, shared: 10000
298
- 193.05 real 133.24 user 52.41 sys