-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flamegraph path to response headers (#601)
* Add flamegraph path to response headers The motivation for this is to enable easy access to the flamegraph when using the async-flamegraph action. Currently, if have a CURL request that you are wanting to profile, you have to add the `pp=async-flamegraph` query parameter to the request, then copy the first ID from the `X-MiniProfiler-Ids` header, then add that ID to the `/mini-profiler-resources/flamegraph?id=` path in the browser. This assumes that you know that the current request profile id is the first one in the `X-MiniProfiler-Ids` header (personally I was not confident of this until I read the source code) and that you know the path to the flamegraph endpoint. I originally added the protocol, host, and port to the path, but I didn't know if that was guaranteed to be correct in all cases, so I removed it. * Add note of X-MiniProfiler-Flamegraph-Path header to README
- Loading branch information
1 parent
9081657
commit 263f0d8
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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 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