FriendsOfShopware / FroshProfiler

This plugin allows you to profile your Shopware 5 application
MIT License
157 stars 41 forks source link

Profiling Ajax Requests #88

Closed buddhaCode closed 6 years ago

buddhaCode commented 6 years ago

Moin, is it somehow possible to profile AJAX requests like domain.tld/checkout/ajaxCart or loading the emotions? When i am looking at domain.tld/profiler none of the AJAX requests is logged. Another thing is strange. There are always only 10 profiles listed. Although, according to my settings there should be up to 50 profiles.

Here are my settings: bildschirmfoto 2018-09-19 um 09 38 02

It thought whitelisting my client's ip (in this case localhost, coz i am on my local development machine) should profile this AJAX requests, as there is no toolbar displayed, obviously.

I am using Shopware 5.4.6 and plugin version 1.3.3

shyim commented 6 years ago

They are handled as sub request in the main request. So if the index page requests emotions. These requests will be shown in the index profile

buddhaCode commented 6 years ago

Hm? In my installation the emotions are ajax requests and not sub-requests through the {action} view helper. And what about the ajaxCart requests?

shyim commented 6 years ago

Ajax request will be shown as sub request. Currently real sub requests are not profiled. It's little bit stupid named

buddhaCode commented 6 years ago

Ahhhh, I see now. Thanks :) Maybe renaming it would be great ;) And is it possible to link the real subrequests with the main request?

shyim commented 6 years ago

Currently not implemented. feel free to create a pull request :)

buddhaCode commented 6 years ago

Will do when I find the time