Sha256: 82f2d4aa175317c5d307b102eb67685fcde9dbcfbd979d90e4d77c44a221cdba
Contents?: true
Size: 431 Bytes
Versions: 4
Compression:
Stored size: 431 Bytes
Contents
require 'speed_gun/profiler/base' class SpeedGun::Profiler::Js < SpeedGun::Profiler::Base def self.profile(profiler, title, elapsed_time, backtrace) profile = new profiler.profiles << profile profile.save(title, elapsed_time, backtrace) end attr_reader :title def save(title, elapsed_time, backtrace) @title = title.to_s @elapsed_time = elapsed_time.to_i * 0.001 @backtrace = backtrace end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
speed_gun-0.0.4 | lib/speed_gun/profiler/js.rb |
speed_gun-0.0.3 | lib/speed_gun/profiler/js.rb |
speed_gun-0.0.2 | lib/speed_gun/profiler/js.rb |
speed_gun-0.0.1 | lib/speed_gun/profiler/js.rb |