Module: Perfer::Platform::Windows
Defined Under Namespace
Modules: Kernel32, PSAPI, Types
Classes: PProcessMemoryCounters
Instance Method Summary
collapse
Instance Method Details
#command_line ⇒ Object
74
75
76
77
78
79
80
81
|
# File 'lib/perfer/platform/windows.rb', line 74
def command_line
Kernel32.GetCommandLineA().tap do |command_line|
unless command_line
warn "Could not get command line via GetCommandLineA()"
return nil
end
end
end
|
#maximum_memory_used ⇒ Object
67
68
69
70
71
72
|
# File 'lib/perfer/platform/windows.rb', line 67
def maximum_memory_used
get_process_memory_info { |info|
info[:PagefileUsage] }
end
|
#memory_used ⇒ Object
60
61
62
63
64
65
|
# File 'lib/perfer/platform/windows.rb', line 60
def memory_used
get_process_memory_info { |info|
info[:PeakPagefileUsage] }
end
|