Skip to content

NameError (uninitialized constant MemoryTracker::Request::Sys): #1

@okliv

Description

@okliv

just after including gem into gemfile i receive this error...

if i add

 require 'pp'
 require 'sys/proctable'

to gems/memory_tracker-1.2.2/lib/memory_tracker.rb

i receive next errors

 undefined method `rss' for #<Struct::ProcTableStruct
 undefined method `vsize' for #<Struct::ProcTableStruct

for this block of code in memory_tracker-1.2.2/lib/memory_tracker/request.rb

private

def self.rss
  rss = ProcTable.ps(Process.pid).rss * 0.004096
end

def self.vsize
  vsize = ProcTable.ps(Process.pid).vsize * 0.000001
end

and as far as i discovered ProcTable.ps... really has no this methods https://github.com/djberg96/sys-proctable/wiki

is this gem ready for production? can you please help to run it properly? because looks like very nice instrument to monitor memory leaks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions