public function testCommonGroups2() { for ($i = 0; $i < 10; ++$i) { Profiler::start('foo.one'); usleep(10000); Profiler::stop(); Profiler::start('bar.one'); usleep(15000); Profiler::stop(); } $result = Profiler::getTimerStat(); $this->assertSame(2, count($result)); $this->checkTimer('one', 10, '0.10', '0.010', $result['foo']['one']); $this->checkTimer('one', 10, '0.15', '0.015', $result['bar']['one']); }