Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to extract only the total ? #15

Open
vesper8 opened this issue Feb 26, 2019 · 0 comments
Open

is it possible to extract only the total ? #15

vesper8 opened this issue Feb 26, 2019 · 0 comments

Comments

@vesper8
Copy link

vesper8 commented Feb 26, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants