tmm1/perftools.rb — Issue #37: perftool ignores CPUPROFILE_FREQUENCY values over 100
Author: fhars
Created: 2011-12-13 10:50:47+00:00
State: open

The website claims that the maximum frequency is 4000, but that is not the case:

```
$ cat _pertool_test
require 'perftools'

PerfTools::CpuProfiler.start("my_profile") do
50.times{ x= 1; 100000.times { x = x - 2*x }}
end
$ CPUPROFILE_FREQUENCY=25 ruby _pertool_test
PROFILE: interrupts/evictions/bytes = 11/0/104
$ CPUPROFILE_FREQUENCY=50 ruby _pertool_test
PROFILE: interrupts/evictions/bytes = 23/0/104
$ CPUPROFILE_FREQUENCY=100 ruby _pertool_test
PROFILE: interrupts/evictions/bytes = 45/0/104
$ CPUPROFILE_FREQUENCY=200 ruby _pertool_test
PROFILE: interrupts/evictions/bytes = 44/0/104
$ CPUPROFILE_FREQUENCY=400 ruby _pertool_test
PROFILE: interrupts/evictions/bytes = 45/0/104
```