diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-16 03:16:05 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-16 03:16:05 +0000 |
commit | 53f97f1c278d2ea22a614682cd47c3ac61e57ef5 (patch) | |
tree | 9a875dca9627b91b989c6f803e44bd81601f3c89 /parse.y | |
parent | 733d65df5e0ca8e415dd87caeb881e074d64f8ee (diff) | |
download | ruby-53f97f1c278d2ea22a614682cd47c3ac61e57ef5.tar.gz |
* parse.y: add dtrace probe for symbol create.
* probes.d: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10130,6 +10130,11 @@ static ID register_symid_str(ID id, VALUE str) { OBJ_FREEZE(str); + + if (RUBY_DTRACE_SYMBOL_CREATE_ENABLED()) { + RUBY_DTRACE_SYMBOL_CREATE(RSTRING_PTR(str), rb_sourcefile(), rb_sourceline()); + } + st_add_direct(global_symbols.sym_id, (st_data_t)str, id); st_add_direct(global_symbols.id_str, id, (st_data_t)str); return id; |