Created
November 23, 2011 21:06
-
-
Save gnarg/1389910 to your computer and use it in GitHub Desktop.
Initializer to bypass access to /proc fs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'new_relic/agent/sampler' | |
| module NewRelic | |
| module Agent | |
| module Samplers | |
| class MemorySampler < NewRelic::Agent::Sampler | |
| def self.supported_on_this_platform? | |
| false | |
| end | |
| end | |
| end | |
| end | |
| class LocalEnvironment | |
| def gather_cpu_info | |
| nil | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment