Skip to content

add cpu start/end timestamps to concurrent profiling transactions#2235

Merged
stefanosiano merged 6 commits intofeat/concurrent-profiling-datafrom
feat/concurrent-profiling-cpu-time
Sep 16, 2022
Merged

add cpu start/end timestamps to concurrent profiling transactions#2235
stefanosiano merged 6 commits intofeat/concurrent-profiling-datafrom
feat/concurrent-profiling-cpu-time

Conversation

@stefanosiano
Copy link
Copy Markdown
Contributor

📜 Description

add cpu start/end timestamps to transactions in profile envelope payloads
added ui test to check times are different

#skip-changelog

💡 Motivation and Context

Profiling traces have a clock field to indicate how timestamps were captured in the trace itself and it can be dual/cpu/wall/global time.
If the timestamps are cpu time, there's no way to filter the trace based on start/end timestamps, as the payload only sends wall time.

💚 How did you test it?

I added a ui test to check correctness of cpu timestamps

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

…oads

added ui test to check times are different
@stefanosiano stefanosiano marked this pull request as ready for review September 8, 2022 10:27
public fun getUnknown ()Ljava/util/Map;
public fun hashCode ()I
public fun notifyFinish (Ljava/lang/Long;Ljava/lang/Long;)V
public fun notifyFinish (Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;)V
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.

Technically a breaking change, should we annotate this method or type saying it's internal?

Copy link
Copy Markdown
Contributor Author

@stefanosiano stefanosiano Sep 8, 2022

Choose a reason for hiding this comment

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

yeah, but the class is already marked with @ApiStatus.Internal
so it shouldn't be exposed to the public. Also, it exists only in this pr and the other, it's not on master

…oads

added ui test to check times are different
@stefanosiano
Copy link
Copy Markdown
Contributor Author

@philipphofmann @bruno-garcia may i consider this pr reviewed and merge it?

Copy link
Copy Markdown
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

One important comment about the hashCode to address, please.

stefanosiano and others added 4 commits September 15, 2022 17:15
sorted transaction list in ui test for better checks
sorted transaction list in ui test for better checks
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (feat/concurrent-profiling-data@eba80a2). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@                        Coverage Diff                        @@
##             feat/concurrent-profiling-data    #2235   +/-   ##
=================================================================
  Coverage                                  ?   80.33%           
  Complexity                                ?     3366           
=================================================================
  Files                                     ?      241           
  Lines                                     ?    12436           
  Branches                                  ?     1657           
=================================================================
  Hits                                      ?     9990           
  Misses                                    ?     1821           
  Partials                                  ?      625           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

LGTM

@stefanosiano stefanosiano merged commit c2b493c into feat/concurrent-profiling-data Sep 16, 2022
@stefanosiano stefanosiano deleted the feat/concurrent-profiling-cpu-time branch September 16, 2022 09:27
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.

5 participants