2017-10-13 27 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團隊的人交談後,似乎問題來自他們身邊。當我知道更多時,我會更新並接受這個答案。