Top Banner
Profiling come analizzare i colli di bottiglia in PrestaShop
17

Profiling PrestaShop

Jan 19, 2017

Download

Internet

Bwlab
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Profiling PrestaShop

Profilingcome analizzare i colli di bottiglia in PrestaShop

Page 2: Profiling PrestaShop

Profiling

“In software engineering, profiling ("program profiling", "software profiling") is a form of dynamic program analysis that measures, for example, the space (memory) or time complexity of a program, the usage of particular instructions, or the frequency and duration of function calls. Most commonly, profiling information serves to aid program optimization.” [wikipedia]

Page 3: Profiling PrestaShop

chiavi

misura

● spazio di memoria● la frequenza di richiami di funzioni● la durata di esecuzione di funzioi

Page 4: Profiling PrestaShop

attivare

file:config/defines.inc.php

Page 5: Profiling PrestaShop

profiling PrestaShop

Page 6: Profiling PrestaShop

valori chiave

● load time (tempo di caricamento)● memory peak (memoria utilizzata)● numero di query● tempo esecuzione query

Page 7: Profiling PrestaShop

valori chiave

Page 8: Profiling PrestaShop
Page 9: Profiling PrestaShop
Page 10: Profiling PrestaShop

errore

nel footer sono stampate tutte le categorie

Page 11: Profiling PrestaShop

dopo la disattivazione del modulo

Page 12: Profiling PrestaShop

dopo la disattivazione

Page 13: Profiling PrestaShop

nuovo problema...

Page 14: Profiling PrestaShop

secondo voi cosa si può fare?

Page 15: Profiling PrestaShop

e la cache se attivata che effetto ha?

Page 16: Profiling PrestaShop

dopo l’attivazione della cache