2017 © Pedro Peláez
 

shopware-plugin shopware-profiler

Profiling for Shopware

image

shyim/shopware-profiler

Profiling for Shopware

  • Monday, February 26, 2018
  • by shyim
  • Repository
  • 21 Watchers
  • 91 Stars
  • 2,865 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 1 Open issues
  • 25 Versions
  • 59 % Grown

The README.md

Profiling

Travis CI Download @ Community Store, (*1)

Profiling for Shopware, (*2)

Version Requirements Availability
1.3 Min. Shopware 5.2, PHP 5.6 Github & Community Store
1.4 Min. Shopware 5.6, PHP 7.2 Github & Community Store

Please create Pull Requests to the lowest version, (*3)

Installation

Zip Installation package for the Shopware Plugin Manager

  • Download the latest plugin version (e.g. FroshProfiler-1.3.6.zip)
  • Upload and install plugin using Plugin Manager

Git Version

  • Checkout Plugin in /custom/plugins/FroshProfiler
  • Change to Directory and run composer install to install the dependencies
  • Install the Plugin with the Plugin Manager

Install with composer

  • Change to your root Installation of shopware
  • Run command composer require frosh/shopware-profiler and install and active plugin with Plugin Manager

Features

Var Dump Server

Starting with 1.3.0 profiler does also support var dump server from Symfony 4.1., (*4)

How to use it?

  • Enable var dump server in plugin config
  • Open a terminal and run ./bin/console server:dump --format=html > dump.html
  • Use method dump() in your code and open dump.html in your Browser.

VarDumpServerHtml, (*5)

Adding additional stop watch events

$this->get('frosh_profiler.stop_watch')->start('Watch Name');

// Your code

$this->get('frosh_profiler.stop_watch')->stop('Watch Name');

Go to Performance tab, and your custom events are shown there, (*6)

JavaScript: StateManager and Event Logging

Will log ..., (*7)

... PubSub events:, (*8)

  • subscribe (event name)
  • unsubscribe (event name)
  • publish (event name, arguments)

... Plugin registration:, (*9)

  • addPlugin (plugin name, element, viewports)
  • removePlugin (plugin name, element)
  • updatePlugin (plugin name, element)
  • destroyPlugin (plugin name, element)

... Breakpoint change:, (*10)

  • switchPlugins (previous/current state)

... Plugin initialization:, (*11)

  • initPlugin (plugin name, selector, event handlers)

Filter

You can filter output by ..., (*12)

  • type (available: subscribe, unsubscribe, publish, addPlugin, removePlugin, updatePlugin, destroyPlugin, switchPlugins, initPlugin)
  • event name
  • plugin name

To set filter use the javascript console and the following functions, corresponding to each filter:, (*13)

StateDebug.setFilterType('publish');
StateDebug.setFilterEvent(['onTrackItems', 'onSetSizes']);
StateDebug.setFilterPlugin('swAjaxVariant');

You can pass a single filter criteria as string or an array of multiple filter criterias., (*14)

Type criterias need to be exact and valid (see above). Event and plugin name criterias can include part of the name., (*15)

To reset filter criterias call the functions without any arguments., (*16)

Backend Profiling

Backend Profiling can be enabled in plugin configuration. The Profile link can be retrieved from the Request Response Header "X-Profiler-URL", (*17)

Images

Browser Toolbar, (*18)

Performance Profiling, (*19)

The Versions

26/02 2018

dev-master

9999999-dev

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

26/02 2018
05/02 2018

dev-feature/ajax

dev-feature/ajax

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

25/01 2018
01/01 2018

dev-dependabot/composer/composer/installers-1.5.0

dev-dependabot/composer/composer/installers-1.5.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

21/11 2017

dev-dependabot/composer/symfony/stopwatch-3.3.13

dev-dependabot/composer/symfony/stopwatch-3.3.13

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

21/11 2017

dev-dependabot/composer/symfony/var-dumper-3.3.13

dev-dependabot/composer/symfony/var-dumper-3.3.13

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

16/11 2017
19/09 2017
12/09 2017

1.1.3

1.1.3.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

27/08 2017

1.1.2

1.1.2.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

12/07 2017

1.1.1

1.1.1.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

04/07 2017

dev-develop

dev-develop

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

04/07 2017

1.1.0

1.1.0.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

24/05 2017

1.0.11

1.0.11.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

21/03 2017

1.0.10

1.0.10.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

28/02 2017

1.0.9

1.0.9.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

28/01 2017

1.0.8

1.0.8.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

23/01 2017

1.0.7

1.0.7.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

12/01 2017

1.0.6

1.0.6.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

05/12 2016

1.0.5

1.0.5.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

15/11 2016

1.0.4

1.0.4.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

05/11 2016

1.0.3

1.0.3.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

25/08 2016

1.0.2

1.0.2.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware

13/07 2016

1.0.1

1.0.1.0

Profiling for Shopware

  Sources   Download

MIT

The Requires

 

plugin profiling shopware