【问题标题】:How to profile only parts of the code with Blackfire?如何使用 Blackfire 仅分析部分代码?
【发布时间】:2017-10-13 09:18:04
【问题描述】:

阅读https://blackfire.io/docs/reference-guide/php-sdk我明白了

$probe 实例也可用于精确检测部分代码

但是

<?php

require __DIR__.'/vendor/autoload.php';

$blackfire = new \Blackfire\Client();

spl_autoload_call('\SendinBlue\Base32');

$probe = $blackfire->createProbe(null, false);
$probe->enable();
\SendinBlue\Base32::decode(\SendinBlue\Base32::encode('Test'));
$probe->disable();
$blackfire->endProbe($probe);

找我the following graph:

但我只想进行基准测试

\SendinBlue\Base32::decode(\SendinBlue\Base32::encode('Test'));

我该怎么做?

【问题讨论】:

    标签: php blackfire


    【解决方案1】:

    在与 Blackfire 团队的某个人交谈后,问题似乎出在他们这边。当我知道更多时,我会更新并接受这个答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-03
      • 1970-01-01
      • 1970-01-01
      • 2011-10-15
      相关资源
      最近更新 更多