-
Notifications
You must be signed in to change notification settings - Fork 36
Export handler
Bart van Hoekelen edited this page Feb 19, 2018
·
4 revisions
Export points and config to array, json or file.
// Finish all tasks and show test results
$export = Performance::results(); // Print and return export handler
// OR USE
$export = Performance::export(); // Only return export handler
// Return all information
print_r($export->get());
Note: pay attention on the point label name.
$export = Performance::export(); // Only return export
// Return all information
print_r($export->get());
$export = Performance::export(); // Only return export
// Return all information
print_r($export->toJson());
$export = Performance::export(); // Only return export
// Return all information
print_r($export->toFile('export.txt'));
use Performance\Performance;
/*
* One simply performance check
*/
Performance::point();
// Run task A
for($x = 0; $x < 100; $x++)
{
echo ".";
}
Performance::message('This is a message');
// Finish all tasks and show test results
$export = Performance::results(); // Print and return export handler
// OR USE
$export = Performance::export(); // Only return export handler
// Return all information
print_r($export->get());
// Return all information in Json
print_r($export->toJson());
// Return only config
print_r($export->config()->get());
// Return only points in Json
print_r($export->points()->toJson());
// Export to file
print_r($export->toFile('export.txt'));
Return to wiki home page