-
Notifications
You must be signed in to change notification settings - Fork 63
Question : Does get-timeline-trace.js gives traces for single url? #17
Description
hi,
Since get-timeline-trace.js has single url of https://github.com/paulirish/automated-chrome-profiling does it captures only single url, though user browses multi url's after login via mail url?
Really appreciate your help doing POC using automated-chrome-profiling and stuck here!
Here is what i did :
In the get-timeline-trace.js file provided main url and saved it.
Then executed the below steps.
Step 1: npm start
Step 2: Run Chrome with an open debugging port:
chrome --remote-debugging-port=9222
Step 3:
3a) Type main url i. Login into application ( mentioned in get-timeline-trace.js) Ex: https://xxxx/sc/login.html?response_type=code&redirect_uri=http%3A%2F%2Fxxxx.ep.corp%2Fauth%2Fcallback&scope=&client_id=xxx-qa1
3b)Landed on 2nd page different url from #3a i.e #a redirect to #3b Ex: http://xxxxxxx/projects/19306/timecards/browse
3c)Clicked on Batch Tab from the 3b page then it lands on different page i.e different url Ex: http://xxxxxx/projects/19306/batches/browse
3d)created new batch of #3c i.e post (form)
3e)Logout
Step 4: Ran below commands
node get-cpu-profile.js
node get-timeline-trace.js
Results : In generated profile-1550277791150.devtools.trace able to see only main url #3a which is mentioned in get-timeline-trace.js file
Questions :
1)Though user browse different urls via main login url,does it always get the trace just for the main url? Ex: https://xxxx/sc/login.html?response_type=code&redirect_uri=http%3A%2F%2Fxxxx.ep.corp%2Fauth%2Fcallback&scope=&client_id=xxx-qa1
- If so Fix code example #1, then how to mention multi url's Page.navigateunder get-timeline-trace.js


