Skip to content

Comments

Use previous HTTP profile timestamps instead of DateTime.now() when requesting HTTP profiles#8860

Merged
auto-submit[bot] merged 8 commits intoflutter:masterfrom
bkonyi:fix_network_profiler_time_since
Feb 10, 2025
Merged

Use previous HTTP profile timestamps instead of DateTime.now() when requesting HTTP profiles#8860
auto-submit[bot] merged 8 commits intoflutter:masterfrom
bkonyi:fix_network_profiler_time_since

Conversation

@bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Feb 6, 2025

The time between the target process creating the HTTP profile and DevTools invoking DateTime.now() to set the last HTTP data refresh time could result in some HTTP events being missed. This change updates the network service to use the timestamp sent with the last HTTP profile when requesting the next HTTP profile so network latency won't introduce time gaps in the profile.

This change also updates the logic to keep track of last HTTP profile request times by isolate as each profile has its own timestamp that needs to be used when requesting the next profile.

Fixes #8380
Fixes #8305

…equesting HTTP profiles

The time between the target process creating the HTTP profile and
DevTools invoking DateTime.now() to set the last HTTP data refresh time
could result in some HTTP events being missed. This change updates the
network service to use the timestamp sent with the last HTTP profile
when requesting the next HTTP profile so network latency won't introduce
time gaps in the profile.

This change also updates the logic to keep track of last HTTP profile
request times by isolate as each profile has its own timestamp that
needs to be used when requesting the next profile.

Fixes flutter#8380
Fixes flutter#8305
@bkonyi bkonyi requested a review from kenzieschmoll as a code owner February 6, 2025 00:29
@bkonyi bkonyi requested a review from a team as a code owner February 6, 2025 00:43
Copy link
Member

@kenzieschmoll kenzieschmoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple more comments then lgtm

@bkonyi bkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 10, 2025
@auto-submit auto-submit bot merged commit c4d8c63 into flutter:master Feb 10, 2025
25 checks passed
@bkonyi bkonyi deleted the fix_network_profiler_time_since branch February 10, 2025 18:06
kenzieschmoll pushed a commit that referenced this pull request Feb 12, 2025
…equesting HTTP profiles (#8860)

The time between the target process creating the HTTP profile and DevTools invoking DateTime.now() to set the last HTTP data refresh time could result in some HTTP events being missed. This change updates the network service to use the timestamp sent with the last HTTP profile when requesting the next HTTP profile so network latency won't introduce time gaps in the profile.

This change also updates the logic to keep track of last HTTP profile request times by isolate as each profile has its own timestamp that needs to be used when requesting the next profile.

Fixes #8380
Fixes #8305
kenzieschmoll pushed a commit that referenced this pull request Feb 12, 2025
…equesting HTTP profiles (#8860)

The time between the target process creating the HTTP profile and DevTools invoking DateTime.now() to set the last HTTP data refresh time could result in some HTTP events being missed. This change updates the network service to use the timestamp sent with the last HTTP profile when requesting the next HTTP profile so network latency won't introduce time gaps in the profile.

This change also updates the logic to keep track of last HTTP profile request times by isolate as each profile has its own timestamp that needs to be used when requesting the next profile.

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

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

why does the only method that appears is socket? Flutter devtools could not preview http request when debug in remote android device

2 participants