Skip to content

Fix network marker timings timestamps#1546

Merged
mstange merged 6 commits into
firefox-devtools:masterfrom
mstange:fix-network-timestamps
Dec 10, 2018
Merged

Fix network marker timings timestamps#1546
mstange merged 6 commits into
firefox-devtools:masterfrom
mstange:fix-network-timestamps

Conversation

@mstange

@mstange mstange commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

This PR contains four changes:

  1. Add a network marker to the profiling upgrading fixtures
  2. Fix the timestamps during processing and add an upgrader.
  3. Fix the flow types for Network marker payloads.
  4. Add a test for marker time shifting during profile processing.

I recommend reviewing the individual commits.

@mstange mstange self-assigned this Dec 7, 2018
@mstange mstange requested a review from julienw December 7, 2018 15:32
@codecov

codecov Bot commented Dec 7, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1546 into master will decrease coverage by 0.1%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1546      +/-   ##
=========================================
- Coverage   81.31%   81.2%   -0.11%     
=========================================
  Files         160     160              
  Lines       11119   11164      +45     
  Branches     2746    2766      +20     
=========================================
+ Hits         9041    9066      +25     
- Misses       1881    1892      +11     
- Partials      197     206       +9
Impacted Files Coverage Δ
src/profile-logic/processed-profile-versioning.js 93.48% <100%> (+0.45%) ⬆️
src/profile-logic/process-profile.js 82.86% <5.26%> (-3.97%) ⬇️
src/components/shared/IdleSearchField.js 38.63% <0%> (-3.23%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce2b8e5...f4bb068. Read the comment docs.

@codecov

codecov Bot commented Dec 7, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1546 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1546      +/-   ##
==========================================
+ Coverage   81.31%   81.36%   +0.05%     
==========================================
  Files         160      160              
  Lines       11119    11163      +44     
  Branches     2746     2764      +18     
==========================================
+ Hits         9041     9083      +42     
- Misses       1881     1883       +2     
  Partials      197      197
Impacted Files Coverage Δ
src/test/fixtures/profiles/gecko-profile.js 100% <ø> (ø) ⬆️
src/test/fixtures/profiles/make-profile.js 97.31% <100%> (ø) ⬆️
src/profile-logic/process-profile.js 87.46% <100%> (+0.64%) ⬆️
src/profile-logic/processed-profile-versioning.js 93.48% <100%> (+0.45%) ⬆️
src/components/network-chart/NetworkChartRow.js 90.52% <0%> (-1.06%) ⬇️
src/profile-logic/marker-data.js 87.57% <0%> (-0.57%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce2b8e5...6633845. Read the comment docs.

…espace when integrating threads during profile processing, and add an upgrader to fix this mistake on existing processed profiles.
name, dur and title are properties of TracingMarker, not of the payload that is
inside the tracing marker. RedirectURI is optional.

Here's the code that writes out the payload to the JSON:
https://searchfox.org/mozilla-central/rev/9abd7f512c9b29071776e7ba3f991d5b5fd59ff6/tools/profiler/core/ProfilerMarkerPayload.cpp#164-201
@mstange mstange force-pushed the fix-network-timestamps branch from e687bc1 to aaf0e45 Compare December 10, 2018 19:00
@mstange mstange requested a review from gregtatum December 10, 2018 19:00

@gregtatum gregtatum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me! Thanks for fixing this.

Comment thread src/profile-logic/process-profile.js
@mstange mstange merged commit 736a54a into firefox-devtools:master Dec 10, 2018
@mstange mstange deleted the fix-network-timestamps branch December 10, 2018 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants