The Trace-viewer tool loads a JSON file in three ways:
- When recording a new trace
- When downloading a file using the download button after selecting a file
- When deletes a file in a tab (drag and drop)
All of them perform a one-time update of the active trace.
Technical details
Take a look at profiling_view and notice
tr.ui.b.readFile(file).then( ... this.setActiveTrace(file.name, data);
and several setActiveTrace call options from beginRecording, onLoadClicked_ and dropHandler_.
Solution Recommendations
Yes, there are several ways to transfer json data to chrome: // tracing (i.e. a trace viewer) without manually clicking on the load data.
Depending on how much effort you want to put into it:
See fswatch, a cross-platform file change monitor.
source share