2017-10-13 37 views
0

阅读https://blackfire.io/docs/reference-guide/php-sdk我看到如何使用Blackfire配置部分代码?

的$探测器实例也可用于仪器精确只有你的代码的一部分

<?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'));` 

我怎么能这样做?

回答

0

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