Description
I love this package and use it a lot when debugging. I like both the console and web presenter. But I'm finding myself in a situation where I would like to log the data that is shown in the console/web presenter in a readable format into the database
I tried using the export handler which gives you access to the points and its metrics, but what I really want is the data that's in the presenter when you use ->results()
I'd like to be able to do something like
$export = Performance::export();
JobLog::create([
'execution_time' => $export->get('total'),
]);
Currently I find that the contents of $export->get()
are not very friendly.. unless I'm missing something.. it seems like a lot of calculations and transforming is applied to that data between what is available in the export and what is displayed in the console/web presenters
Any way we can access what's displayed in the presenter in an easy-to-access format like a json object?
thanks!