mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:10:11 +00:00
Support for stacked profiler analysis
This commit is contained in:
parent
3cef3ab107
commit
c89533a70b
17 changed files with 763 additions and 611 deletions
|
@ -250,11 +250,12 @@ class ProfilerTest extends MockedTest
|
|||
->once();
|
||||
|
||||
$profiler = new Profiler($configCache);
|
||||
$profiler->startRecording('network');
|
||||
|
||||
self::assertFalse($profiler->isRendertime());
|
||||
self::assertEmpty($profiler->getRendertimeString());
|
||||
|
||||
$profiler->saveTimestamp(time(), 'network', 'test1');
|
||||
$profiler->stopRecording('test1');
|
||||
|
||||
$config = \Mockery::mock(IConfig::class);
|
||||
$config->shouldReceive('get')
|
||||
|
@ -282,7 +283,8 @@ class ProfilerTest extends MockedTest
|
|||
|
||||
$profiler->update($config);
|
||||
|
||||
$profiler->saveTimestamp(time(), 'database', 'test2');
|
||||
$profiler->startRecording('database');
|
||||
$profiler->stopRecording('test2');
|
||||
|
||||
self::assertTrue($profiler->isRendertime());
|
||||
$output = $profiler->getRendertimeString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue