Skip to content

Commit

Permalink
FEATURE: use Tideways now
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfuerst committed Dec 27, 2017
1 parent 86084ed commit ba88dd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Classes/Sandstorm/PhpProfiler/Domain/Model/ProfilingRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ public function start()
$this->timers = array();
$this->timestamps = array();
$this->startTime = microtime(TRUE);
if (function_exists('xhprof_enable')) {
xhprof_enable(XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY);
if (function_exists('tideways_enable')) {
tideways_enable(TIDEWAYS_FLAGS_NO_SPANS | TIDEWAYS_FLAGS_CPU | TIDEWAYS_FLAGS_MEMORY);
}
$this->startTimer('Profiling Run');
}
Expand All @@ -184,8 +184,8 @@ public function start()
public function stop()
{
$this->stopTimer('Profiling Run');
if (function_exists('xhprof_disable')) {
$this->xhprofTrace = xhprof_disable();
if (function_exists('tideways_disable')) {
$this->xhprofTrace = tideways_disable();
}

$this->convertTimersRelativeToStartTime();
Expand Down
4 changes: 2 additions & 2 deletions Classes/Sandstorm/PhpProfiler/Sql/SqlStatementProfiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* The TYPO3 project - inspiring people to share! *
* */

use Doctrine\DBAL\Logging\SQLLogger;
use Neos\Flow\Persistence\Doctrine\Logging\SqlLogger;
use Sandstorm\PhpProfiler\Profiler;
use Neos\Flow\Annotations as Flow;

Expand All @@ -20,7 +20,7 @@
*
* @Flow\Proxy(false)
*/
class SqlStatementProfiler implements SQLLogger {
class SqlStatementProfiler extends SQLLogger {

/**
* Logs a SQL statement somewhere.
Expand Down

0 comments on commit ba88dd2

Please sign in to comment.