本文簡要介紹ruby語言中 GC::Profiler模塊
的用法。
GC
分析器提供對 GC
運行信息的訪問,包括時間、長度和對象空間大小。
例子:
GC::Profiler.enable
require 'rdoc/rdoc'
GC::Profiler.report
GC::Profiler.disable
另見 GC.count
、 GC.malloc_allocated_size
和 GC.malloc_allocations
相關用法
- Ruby Profiler.raw_data用法及代碼示例
- Ruby Profiler.result用法及代碼示例
- Ruby Process.groups用法及代碼示例
- Ruby Process.wait2用法及代碼示例
- Ruby Process.getpgrp用法及代碼示例
- Ruby Proc.eql?用法及代碼示例
- Ruby Process.setproctitle用法及代碼示例
- Ruby Process.setrlimit用法及代碼示例
- Ruby Proc.prc ==用法及代碼示例
- Ruby Process.uid用法及代碼示例
- Ruby Process.pid用法及代碼示例
- Ruby Proc.ruby2_keywords用法及代碼示例
- Ruby Proc.new用法及代碼示例
- Ruby Process.detach用法及代碼示例
- Ruby Process.maxgroups用法及代碼示例
- Ruby Process.clock_gettime用法及代碼示例
- Ruby Proc.lambda?用法及代碼示例
- Ruby Proc.arity用法及代碼示例
- Ruby Process.exec用法及代碼示例
- Ruby Process.groups=用法及代碼示例
- Ruby Proc.(params,...)用法及代碼示例
- Ruby Proc.curry用法及代碼示例
- Ruby Process.clock_getres用法及代碼示例
- Ruby Proc.prc << g用法及代碼示例
- Ruby Process.getsid用法及代碼示例
注:本文由純淨天空篩選整理自ruby-lang.org大神的英文原創作品 Profiler模塊。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。