Use previous HTTP profile timestamps instead of DateTime.now() when requesting 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 https://github.com/flutter/devtools/issues/8380
Fixes https://github.com/flutter/devtools/issues/8305
3 files changed
tree: b7b246ea12a06eea27338f612e1b550f0af0996d
  1. .github/
  2. .vscode/
  3. _markdown_images/
  4. case_study/
  5. docs/
  6. packages/
  7. third_party/
  8. tool/
  9. .gitattributes
  10. .gitignore
  11. analysis_options.yaml
  12. AUTHORS
  13. BETA_TESTING.md
  14. CODE_OF_CONDUCT.md
  15. CODEOWNERS
  16. CONTRIBUTING.md
  17. devtools_options.yaml
  18. DOCUMENTATION.md
  19. flutter-candidate.txt
  20. LICENSE
  21. pubspec.yaml
  22. README.md
  23. STYLE.md
  24. TESTING.md
  25. TRIAGE.md
README.md

Dart & Flutter DevTools

Build Status OpenSSF Scorecard

What is this?

Dart & Flutter DevTools is a suite of performance tools for Dart and Flutter.

Getting started

For documentation on installing and trying out DevTools, please see our docs.

Contributing and development

Contributions welcome! See our contributing page for an overview of how to build and contribute to the project.

Terms and Privacy

By using Dart DevTools, you agree to the Google Terms of Service. To understand how we use data collected from this service, see the Google Privacy Policy.