Skip to content

v2.1.0

Latest
Compare
Choose a tag to compare
@cconard96 cconard96 released this 14 Dec 19:02
· 2 commits to master since this release

Added improved profiler.

  • Profiler now adds a level to each section (info, slow or critical). The slow and critical thresholds are configurable by static properties.
  • The profiler only logs slow and critical sections by default, but that can be changed with the static property.
  • Log sections are logged during script shutdown now instead of after each section ends and is logged as JSON instead of plain text to increase machine readability.
  • Profiler logs can now be read in the web interface on a dedicated page (see Profiler option in dev plugin menu) or inside a new Profiler tab in the GLPI debug panel.
  • The profiler can log aggregates of sections (grouped by name). For example, while individual calls to a profiled method may not take a significant amount of time, it could be that the method is called hundreds of times within the course of a request which takes a lot of time overall. Aggregated events are logged using the same slow and critical thresholds as regular profiler sections. The logging of aggregated sections is enabled by default but can be disabled with a static property.