Bug 1378002 - add more information to track intermittent process crash. r=ochameau draft
authoryulia <ystartsev@mozilla.com>
Fri, 16 Mar 2018 17:57:54 +0100
changeset 768647 aa6d7ef00d7b1260517d0bbb2a510c02de2b4969
parent 768523 47e1787284fbfad3d32eb7081ffdda58d2b086de
push id102948
push userbmo:ystartsev@mozilla.com
push dateFri, 16 Mar 2018 16:58:19 +0000
reviewersochameau
bugs1378002
milestone61.0a1
Bug 1378002 - add more information to track intermittent process crash. r=ochameau MozReview-Commit-ID: IryoQs2r9Rt
testing/talos/talos/tests/devtools/addon/content/tests/debugger/debugger-helpers.js
--- a/testing/talos/talos/tests/devtools/addon/content/tests/debugger/debugger-helpers.js
+++ b/testing/talos/talos/tests/devtools/addon/content/tests/debugger/debugger-helpers.js
@@ -167,22 +167,24 @@ exports.createContext = createContext;
 function selectSource(dbg, url) {
   dump(`Selecting source: ${url}\n`);
   const line = 1;
   const source = findSource(dbg, url);
   dbg.actions.selectLocation({ sourceId: source.get("id"), line });
   return waitForState(
     dbg,
     state => {
+      dump(`Checking if source is loaded\n`);
       const source = dbg.selectors.getSelectedSource(state);
       const isLoaded = source && source.get("loadedState") === "loaded";
       if (!isLoaded) {
         return false;
       }
 
+      dump(`Waiting for symbols\n`);
       // wait for symbols -- a flat map of all named variables in a file -- to be calculated.
       // this is a slow process and becomes slower the larger the file is
       return dbg.selectors.hasSymbols(state, source.toJS());
     },
     "selected source"
   );
 }