Skip to content

Instantly share code, notes, and snippets.

View methodmissing's full-sized avatar

Lourens Naudé methodmissing

View GitHub Profile
213-138-231-176:mri_instrumentation lourens$ ./bin/instrument -c /Users/lourens/projects/superbreak_app/script/console cache
./bin/../lib/mri/instrumentation/runner/base.rb:85: warning: Insecure world writable dir /Users/lourens in PATH, mode 040753
./bin/../lib/mri/instrumentation/runner/base.rb:87: warning: Insecure world writable dir /Users/lourens in PATH, mode 040753
Loading development environment (Rails 2.3.2)
/Users/lourens/projects/superbreak_app/vendor/rails/railties/lib/commands/console.rb:45: warning: Insecure world writable dir /Users/lourens in PATH, mode 040753
Tracing... Hit Ctrl-C to end.
dtrace: error on enabled probe ID 4 (ID 18889: pid8220:ruby:rb_clear_cache_by_id:entry): invalid address (0x2) in action #3 at DIF offset 28
>>
Count,
rb_memerror:
return: void
rb_newobj:
ruby_stack_check:
ruby_xmalloc:
return: void
ruby_xcalloc:
return: void
ruby_xrealloc:
return: void
213-138-232-39:mri_instrumentation lourens$ rake
(in /Users/lourens/projects/mri_instrumentation)
/opt/local/bin/ruby -I"/Users/lourens/projects/mri_instrumentation/lib" -I"/Users/lourens/projects/mri_instrumentation/lib" "/Users/lourens/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/instrumentation/argument_test.rb" "test/instrumentation/definition_test.rb" "test/instrumentation/probe_collection_test.rb" "test/instrumentation/probe_test.rb" "test/instrumentation/runner_test.rb" "test/instrumentation/strategy/base_test.rb" "test/instrumentation/strategy/builder_test.rb" "test/instrumentation/strategy/calltime_test.rb" "test/instrumentation_test.rb"
/Users/lourens/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:990: warning: Insecure world writable dir /Users/lourens in PATH, mode 040753
Loaded suite /Users/lourens/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader
Started
......................................Tracing... Hit Ctrl-C to end.
Count,
Probe COUNT
class Target
def initialize( runs )
@runs = runs
end
def run!
@runs.times do
Time.now
end
213-138-232-39:mri_instrumentation lourens$ rake
(in /Users/lourens/projects/mri_instrumentation)
/opt/local/bin/ruby -I"/Users/lourens/projects/mri_instrumentation/lib" -I"/Users/lourens/projects/mri_instrumentation/lib" "/Users/lourens/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/instrumentation/argument_test.rb" "test/instrumentation/definition_test.rb" "test/instrumentation/probe_collection_test.rb" "test/instrumentation/probe_test.rb" "test/instrumentation/runner_test.rb" "test/instrumentation/strategy/base_test.rb" "test/instrumentation/strategy/builder_test.rb" "test/instrumentation/strategy/calltime_test.rb" "test/instrumentation_test.rb"
/Users/lourens/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:990: warning: Insecure world writable dir /Users/lourens in PATH, mode 040753
Loaded suite /Users/lourens/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader
Started
......................................Tracing... Hit Ctrl-C to end.
Count,
Probe COUNT
void
rb_memerror()
{
rb_thread_t th = rb_curr_thread;
if (!nomem_error ||
(rb_thread_raised_p(th, RAISED_NOMEMORY) && rb_safe_level() < 4)) {
fprintf(stderr, "[FATAL] failed to allocate memory\n");
exit(1);
}
rb_memerror:
ruby_xmalloc:
- long: 'Allocation Size'
ruby_xcalloc:
- long: 'Number'
- long: 'Allocation Size'
ruby_xrealloc:
- pointer: 'Address'
- long: 'Allocation Size'
ruby_xfree:
mri:
thread:
thread_switch:
- char: 'Thread Status'
- int: 'Restore'
cache:
clear_cache:
clear_cache_by_class:
- char: 'Class'
clear_cache_by_id:
mri:
thread:
thread_switch:
- char: 'Thread Status'
- int: 'Restore'
cache:
clear_cache:
clear_cache_by_class:
- char: 'Class'
clear_cache_by_id:
213-138-231-67:matzruby lourens$ sudo ./instrument/gc.d -c "./ruby instrument/gc.rb"
Password:
ELAPSED TIME DISTRIBUTION,
unregister_address
value ------------- Distribution ------------- count
2048 | 0
4096 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1
8192 | 0