Task: Goal is to get all the functions which are triggered by installed extensions.
Expected Output: Javascript function calls, similar to what appears in timeline panel.
Description: As mentioned above I want to get the timeline data from chrome. For that I am using timeline feature of chrome remote debugging protocol to get timeline data using chrome javascript debugger API. I am starting a debuger with following code:
chrome.debugger.attach({ tabId: tabid }, version, onAttach.bind(null,tabid);
chrome.debugger.sendCommand({ tabId: tabid }, "Tracing.start");
However when I ran this code I get an error which states that timeline is deprecated, use tracing. Although official documentation haven't mentioned that timeline is deprecated. I have also tried tracing which removes the error but still no event is captured. Is there any issue of flags?
After reading code of Chrome Apps & Extensions Developer Tool, I found out that chrome.activityLogPrivate API to log all the events by different extensions. However, I am not able to run it by calling inside my extension, it remains undefined. I am not able to find documentation of this extension also.