Skip to content

Commit

Permalink
Add support for correctly loggin newobj events when profiling memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfis committed May 13, 2020
1 parent 0b1b96a commit 6fbce38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/ruby_prof/rp_profile.c
Expand Up @@ -65,6 +65,8 @@ static const char* get_event_name(rb_event_flag_t event)
return "fiber-switch";
case RUBY_EVENT_RAISE:
return "raise";
case RUBY_INTERNAL_EVENT_NEWOBJ:
return "newobj";
default:
return "unknown";
}
Expand Down

0 comments on commit 6fbce38

Please sign in to comment.