-
Notifications
You must be signed in to change notification settings - Fork 138
Implement Server-Timing API foundation as well as basic load time metrics #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
79afa19
Implement foundation for a Server-Timing API, including default metri…
felixarntz 6974ebb
Merge branch 'trunk' into add/551-server-timing-api
felixarntz 1ee4ec8
Implement perflab_wrap_server_timing() utility function for callbacks.
felixarntz 0e89e48
Introduce perflab_server_timing_use_output_buffer() and also record t…
felixarntz a048bb6
Use shutdown action instead of wp_footer when using an output buffer.
felixarntz d31ca57
Expose DB queries Server-Timing metrics if SAVEQUERIES is enabled.
felixarntz 692cd60
Merge branch 'trunk' into add/551-server-timing-api
felixarntz 51c4222
Revamp Server-Timing API to simplify API usage.
felixarntz be29598
Merge branch 'trunk' into add/551-server-timing-api
felixarntz 26cfc27
Move logic to register default Server-Timing metrics to its own file.
felixarntz 096bb87
Place object-cache.php drop-in to load Server-Timing API early enough…
felixarntz 1efb1db
Add alloptions query to metrics to cover, in support of #526.
felixarntz 9430492
Add isset and is_array check to account for odd database implementati…
felixarntz fb5150e
Consider either performance-lab or performance as plugin directory na…
felixarntz 2c48a19
Follow up fix to last commit.
felixarntz 2ff02a7
Add missing return doc.
felixarntz e501b5d
Introduce has_registered_metric method.
felixarntz 8115d82
Add tests for Server-Timing API global functions.
felixarntz 5f96a0e
Remove overly strict check that is not feasible for unit testing.
felixarntz a2afcb9
Include check for extra safety.
felixarntz 9d826f5
Prevent duplicate registration and warn about it, fix potential issue…
felixarntz 33cf718
Fix perflab_wrap_server_timing() to consider potential mmultiple call…
felixarntz 44fd9e5
Reintroduce revised condition to warn about measuring that happens to…
felixarntz 06dd8f0
Add test coverage for Perflab_Server_Timing class.
felixarntz 946fdb9
Add test coverage for Perflab_Server_Timing_Metric class.
felixarntz 1641feb
Add at least basic test for placing object-cache.php drop-in.
felixarntz 668d4e1
Merge branch 'trunk' into add/551-server-timing-api
felixarntz e88410e
Add comment about global used.
felixarntz b88611c
Merge branch 'add/551-server-timing-api' of github.com:WordPress/perf…
felixarntz e9eba75
Rename object-cache.php to object-cache.copy.php to indicate its usag…
felixarntz 6f2f1c5
Delete custom object-cache.php drop-in on deactivation (and restore o…
felixarntz a5f9f5a
Use more specific -orig.php suffix in case any other active plugin is…
felixarntz fdcad81
Fix legacy test setUp method names to be set_up.
felixarntz 08c05d5
Fix test warning and account for filesystem that does not allow writi…
felixarntz 03ad67e
Further fixes around WP_Filesystem() usage.
felixarntz 7c87c31
Change wp-env config to force direct filesystem access, similar to co…
felixarntz ed6bbbd
Merge branch 'trunk' into add/551-server-timing-api
felixarntz ca837cd
Fix documentation wording issue.
felixarntz e8a4bad
Clarify output buffer intention and why it would be useful to enable it.
felixarntz f2d60e9
Merge branch 'add/551-server-timing-api' of github.com:WordPress/perf…
felixarntz ebb4824
Use PHP_INT_MIN if available instead of arbitrary -1000.
felixarntz 887f6b1
Move logic to check for null metric value to a more logical place.
felixarntz 5a25b2c
Only add filter for measuring autoloaded options query if object-cach…
felixarntz 6c71103
Add doc comments to clarify use of SAVEQUERIES constant.
felixarntz 1d26d91
Fix .wp-env.json indentation to use spaces per .editorconfig guidelines.
felixarntz ddd8fe3
Rename get_header_value() method to get_header().
felixarntz b6466fa
Merge branch 'trunk' into add/551-server-timing-api
felixarntz 569637d
Also allow using numeric strings to set Server-Timing metric values.
felixarntz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use more specific -orig.php suffix in case any other active plugin is…
… doing something similar, to avoid conflicts.
- Loading branch information
commit a5f9f5a8bd24d0a89738bd6e5067069d86894081
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.