Capture more profiling data #9293

Closed
mrclay opened this Issue Jan 8, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@mrclay
Member

mrclay commented Jan 8, 2016

A few months ago I played with adding more internal timing to core to see where the time was going: mrclay@ff84abe

While this is obviously not as good data as a real profiler tool, it's low overhead and gives tremendously better insight than total time alone. It gives you times for:

  • each callable in system events (e.g. "file_init" and "aalborg_theme_pagesetup")
  • total time to run start.php for all plugins
  • from routing to elgg_view_page() ("how long to generate the body of the page")
  • elgg_view_page()
  • elgg_view_layout()
  • various boot functions
  • (optional) timing each query

I'll rebase this for 2.x and drop an example report here.

@mrclay mrclay added the performance label Jan 8, 2016

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jan 8, 2016

feature(profiler): allow capture/display of crude profiling data
Via `$CONFIG` options, sites can enable the display of profiling data in
the console. Data is available as a tree or a flattened list sorted by
duration.

Refs #9293
@mrclay

This comment has been minimized.

Show comment
Hide comment
@mrclay

mrclay Jan 8, 2016

Member

See #9295

Member

mrclay commented Jan 8, 2016

See #9295

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jan 8, 2016

feature(profiler): allow capture/display of crude profiling data
Via `$CONFIG` options, sites can enable the display of profiling data in
the console. Data is available as a tree or a flattened list sorted by
duration.

Refs #9293

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jan 8, 2016

feature(profiler): allow capture/display of crude profiling data
Via `$CONFIG` options, sites can enable the display of profiling data in
the console. Data is available as a tree or a flattened list sorted by
duration.

Refs #9293

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jan 29, 2016

feature(profiler): allow capture/display of crude profiling data
Via `$CONFIG` options, sites can enable the display of profiling data in
the console. Data is available as a tree or a flattened list sorted by
duration.

Refs #9293

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jan 30, 2016

feature(profiler): allow capture/display of crude profiling data
Via `$CONFIG` options, sites can enable the display of profiling data in
the JavaScript console. Data is available as a tree or a flattened list
sorted by duration.

Fixes #9293

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jan 30, 2016

feature(profiler): allow capture/display of crude profiling data
Via `$CONFIG` options, sites can enable the display of profiling data in
the JavaScript console. Data is available as a tree or a flattened list
sorted by duration. Times available:

- each callable in system events (e.g. `file_init` and `aalborg_theme_pagesetup`)
- total time to run start.php for all plugins
- from routing to `elgg_view_page` ("how long to generate the body of the page")
- `elgg_view_page`
- `elgg_view_layout`
- various boot functions
- (optional) timing each query

Fixes #9293

@mrclay mrclay closed this in 6ce01fa Jan 30, 2016

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