Timecap is a screen shot recording tool to help gather visual response times. Specifically, the tool will record an area of the screen and output images whenever the area changes along with a timestamp.
This was initially developed to help gather reportable load times for web pages that continue to initialize after onload is triggered. Tools like Firebug or Chrome's Developer Tools did not always report accurate times in these scenarios due to overhead that inflate the results or difficulty in gathering an accurate result (for pages that load dynamic elements).
You have a dashboard with multiple tabs. Clicking on a tab causes the previous tab to clean up, and makes several async calls to fetch new data. The length of time it takes to switch [including front end & backend processing times] can be gathered with the tool.
- Start the recorder
- Perform actions
- Wait for recorder to finish
A set of images files will be saved to disk along with a console printout of image id - screen shot time from the start. Simply look through the frames and enter the start / end id into the tool to get the elapsed time.
- Load up the tool in the command line
- Move the window that will be recorded to the top left [makes finding the dimensions easier]
- Enter the (x,y) start position [top left is (0,0)] and the width and height of the capture area
- Check the output image
shot0.bmpto see if the right area was captured - Type
nto retry if needed
- Check the output image
- Enter total capture time - how long you want the tool to run, useful if you want to capture multiple runs in one recording
- Enter time step between captures - the frame rate essentially. 100ms is a good default
- Note: frames will only be saved when the tool detects a visual change
- Wait for the countdown, then start performing actions. In case the estimated time was too high, simply wait for the tool to finish - as long as the range is static, no extra images will be saved
- The console will output the time results in the form
id time(ms) - Look through the output images and enter the start and end frame ids into the tool
- The elapsed time will be calculated and the average will be adjusted.
- Multiple ranges can be inserted within a single capture
- Type
0 0to end - Note: images are overwritten each run
- There are several options next:
a.
cwill loop back to 6 to continue - averages are saved b.rwill clear the results and loop back to 6 c.qwill print the results and quit - Can delete all *.bmp files to cleanup the current directory