Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.

# 1.23.2 - unreleased
- Changed stopwatch category from default to "httplug", so it's more prominent on Execution timeline view

# 1.23.1 - 2021-10-13
- Fix issue with whitespaces in URL when URL in tab was copied
- Fixed dark mode compatiblity, making some previously invisible elements visible
Expand Down
6 changes: 4 additions & 2 deletions src/Collector/ProfileClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class ProfileClient implements HttpClient, HttpAsyncClient
*/
private $eventNames = [];

private const STOPWATCH_CATEGORY = 'httplug';

/**
* @param HttpClient|HttpAsyncClient $client The client to profile. Client must implement HttpClient or
* HttpAsyncClient interface.
Expand Down Expand Up @@ -85,7 +87,7 @@ public function sendAsyncRequest(RequestInterface $request)
}

$this->collectRequestInformations($request, $stack);
$event = $this->stopwatch->start($this->getStopwatchEventName($request));
$event = $this->stopwatch->start($this->getStopwatchEventName($request), self::STOPWATCH_CATEGORY);

$onFulfilled = function (ResponseInterface $response) use ($event, $stack) {
$this->collectResponseInformations($response, $event, $stack);
Expand Down Expand Up @@ -128,7 +130,7 @@ protected function doSendRequest(RequestInterface $request)
}

$this->collectRequestInformations($request, $stack);
$event = $this->stopwatch->start($this->getStopwatchEventName($request));
$event = $this->stopwatch->start($this->getStopwatchEventName($request), self::STOPWATCH_CATEGORY);

try {
$response = $this->client->sendRequest($request);
Expand Down