We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25669fd commit 1f877ffCopy full SHA for 1f877ff
lib/datadog/profiling.rb
@@ -78,8 +78,11 @@ def self.wait_until_running(timeout_seconds: 5)
78
end
79
80
private_class_method def self.replace_noop_allocation_count
81
- def self.allocation_count # rubocop:disable Lint/NestedMethodDefinition (On purpose!)
82
- Datadog::Profiling::Collectors::CpuAndWallTimeWorker._native_allocation_count
+ class << self
+ remove_method :allocation_count
83
+ def allocation_count
84
+ Datadog::Profiling::Collectors::CpuAndWallTimeWorker._native_allocation_count
85
+ end
86
87
88
0 commit comments