Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export timeline-tracing API to Detox end-users #2531

Merged
merged 1 commit into from Dec 14, 2020
Merged

Conversation

d4vidi
Copy link
Collaborator

@d4vidi d4vidi commented Dec 14, 2020

Description

A follow-up on #2505 and #2522. Makes the internal trace and traceCall API's used by Detox itself, also available to Detox users via a documented API (explicitly specified as beta).

@d4vidi d4vidi self-assigned this Dec 14, 2020
@d4vidi d4vidi requested a review from noomorph December 14, 2020 20:28
@@ -1 +0,0 @@
[{"name":"process_name","pid":0,"tid":"2","ts":1000,"ph":"M","args":{"name":"detox"}},{"name":"thread_name","pid":0,"tid":"2","ts":1000,"ph":"M","args":{"name":"Worker #2"}},{"name":"detoxInit","pid":0,"tid":"2","ts":1100,"ph":"B","args":{}},{"name":"acquireDevice","pid":0,"tid":"2","ts":1200,"ph":"B","args":{}},{"name":"acquireDevice","pid":0,"tid":"2","ts":1300,"ph":"E","args":{"success":true}},{"name":"appUninstall","pid":0,"tid":"2","ts":1400,"ph":"B","args":{}},{"name":"appUninstall","pid":0,"tid":"2","ts":1500,"ph":"E","args":{"success":true}},{"name":"appInstall","pid":0,"tid":"2","ts":1600,"ph":"B","args":{}},{"name":"appInstall","pid":0,"tid":"2","ts":1700,"ph":"E","args":{"success":true}},{"name":"launchApp","pid":0,"tid":"2","ts":1800,"ph":"B","args":{}},{"name":"launchApp","pid":0,"tid":"2","ts":1900,"ph":"E","args":{"success":true}},{"name":"detoxInit","pid":0,"tid":"2","ts":2000,"ph":"E","args":{"success":true}},{"name":"StubDevice#2","pid":0,"tid":"2","ts":2100,"ph":"B","args":{}},{"name":"Stub2","pid":0,"tid":"2","ts":2200,"ph":"B","args":{}},{"name":"should have welcome screen","pid":0,"tid":"2","ts":2300,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"2","ts":2400,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"2","ts":2500,"ph":"E","args":{"success":true}},{"name":"should have welcome screen","pid":0,"tid":"2","ts":2600,"ph":"E","args":{"status":"passed"}},{"name":"should show hello screen after tap","pid":0,"tid":"2","ts":2700,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"2","ts":2800,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"2","ts":2900,"ph":"E","args":{"success":true}},{"name":"should show hello screen after tap","pid":0,"tid":"2","ts":3000,"ph":"E","args":{"status":"passed"}},{"name":"Stub2","pid":0,"tid":"2","ts":3100,"ph":"E","args":{}},{"name":"StubDevice#2","pid":0,"tid":"2","ts":3200,"ph":"E","args":{}},{"name":"process_name","pid":0,"tid":"1","ts":1000,"ph":"M","args":{"name":"detox"}},{"name":"thread_name","pid":0,"tid":"1","ts":1000,"ph":"M","args":{"name":"Worker #1"}},{"name":"detoxInit","pid":0,"tid":"1","ts":1100,"ph":"B","args":{}},{"name":"acquireDevice","pid":0,"tid":"1","ts":1200,"ph":"B","args":{}},{"name":"acquireDevice","pid":0,"tid":"1","ts":1300,"ph":"E","args":{"success":true}},{"name":"appUninstall","pid":0,"tid":"1","ts":1400,"ph":"B","args":{}},{"name":"appUninstall","pid":0,"tid":"1","ts":1500,"ph":"E","args":{"success":true}},{"name":"appInstall","pid":0,"tid":"1","ts":1600,"ph":"B","args":{}},{"name":"appInstall","pid":0,"tid":"1","ts":1700,"ph":"E","args":{"success":true}},{"name":"launchApp","pid":0,"tid":"1","ts":1800,"ph":"B","args":{}},{"name":"launchApp","pid":0,"tid":"1","ts":1900,"ph":"E","args":{"success":true}},{"name":"detoxInit","pid":0,"tid":"1","ts":2000,"ph":"E","args":{"success":true}},{"name":"StubDevice#1","pid":0,"tid":"1","ts":2100,"ph":"B","args":{}},{"name":"Stub3","pid":0,"tid":"1","ts":2200,"ph":"B","args":{}},{"name":"should have welcome screen","pid":0,"tid":"1","ts":2300,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"1","ts":2400,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"1","ts":2500,"ph":"E","args":{"success":true}},{"name":"should have welcome screen","pid":0,"tid":"1","ts":2600,"ph":"E","args":{"status":"passed"}},{"name":"should show hello screen after tap","pid":0,"tid":"1","ts":2700,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"1","ts":2800,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"1","ts":2900,"ph":"E","args":{"success":true}},{"name":"should show hello screen after tap","pid":0,"tid":"1","ts":3000,"ph":"E","args":{"status":"passed"}},{"name":"should show world screen after tap","pid":0,"tid":"1","ts":3100,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"1","ts":3200,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"1","ts":3300,"ph":"E","args":{"success":true}},{"name":"should show world screen after tap","pid":0,"tid":"1","ts":3400,"ph":"E","args":{"status":"passed"}},{"name":"Stub3","pid":0,"tid":"1","ts":3500,"ph":"E","args":{}},{"name":"StubDevice#1","pid":0,"tid":"1","ts":3600,"ph":"E","args":{}},{"name":"process_name","pid":0,"tid":"2","ts":3300,"ph":"M","args":{"name":"detox"}},{"name":"thread_name","pid":0,"tid":"2","ts":3300,"ph":"M","args":{"name":"Worker #2"}},{"name":"detoxInit","pid":0,"tid":"2","ts":3400,"ph":"B","args":{}},{"name":"acquireDevice","pid":0,"tid":"2","ts":3500,"ph":"B","args":{}},{"name":"acquireDevice","pid":0,"tid":"2","ts":3600,"ph":"E","args":{"success":true}},{"name":"appUninstall","pid":0,"tid":"2","ts":3700,"ph":"B","args":{}},{"name":"appUninstall","pid":0,"tid":"2","ts":3800,"ph":"E","args":{"success":true}},{"name":"appInstall","pid":0,"tid":"2","ts":3900,"ph":"B","args":{}},{"name":"appInstall","pid":0,"tid":"2","ts":4000,"ph":"E","args":{"success":true}},{"name":"launchApp","pid":0,"tid":"2","ts":4100,"ph":"B","args":{}},{"name":"launchApp","pid":0,"tid":"2","ts":4200,"ph":"E","args":{"success":true}},{"name":"detoxInit","pid":0,"tid":"2","ts":4300,"ph":"E","args":{"success":true}},{"name":"StubDevice#2","pid":0,"tid":"2","ts":4400,"ph":"B","args":{}},{"name":"Stub1","pid":0,"tid":"2","ts":4500,"ph":"B","args":{}},{"name":"should have welcome screen","pid":0,"tid":"2","ts":4600,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"2","ts":4700,"ph":"B","args":{}},{"name":"reloadRN","pid":0,"tid":"2","ts":4800,"ph":"E","args":{"success":true}},{"name":"should have welcome screen","pid":0,"tid":"2","ts":4900,"ph":"E","args":{"status":"failed"}},{"name":"Stub1","pid":0,"tid":"2","ts":5000,"ph":"E","args":{}},{"name":"StubDevice#2","pid":0,"tid":"2","ts":5100,"ph":"E","args":{}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops... it was never suppose to make it in, in the first place.

@d4vidi d4vidi merged commit 9762e38 into master Dec 14, 2020
@d4vidi d4vidi deleted the timeline-trace-export branch December 14, 2020 22:02
@d4vidi d4vidi restored the timeline-trace-export branch December 14, 2020 22:03
@noomorph noomorph deleted the timeline-trace-export branch October 7, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant