Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing --js-flags in Google Chrome to get --trace output
    primarykey
    data
    text
    <p>I've looked through various sources online and done a number of Google searches, but I can't seem to find any specific instructions as to how to work with the V8 --trace-* flags in Google Chrome. I've seen a few "You can do this as well in Chrome", but I haven't been able to find what I'm looking for, which is output like this: (snippets are near the near bottom of the post) <a href="http://floitsch.blogspot.ca/2012/03/optimizing-for-v8-introduction.html" rel="noreferrer">Optomizing for V8</a>.</p> <p>I found reference that the data is logged to a file: <a href="http://code.google.com/p/v8/wiki/ProfilingChromiumWithV8" rel="noreferrer">Profiling Chromium with V8</a> and I've found that the file is likely named v8.log: (Lost that link) but I haven't found any clues as to how to generate that file, or where it is located. It didn't appear to be in the chrome directory or the user directory.</p> <p>Apparently I need to enable .map files for chrome.dll as well, but I wasn't able to find anything to help me with that.</p> <p>The reason I would prefer to use Chrome's V8 for this as opposed to building V8 and using a shell is because the JavaScript I would like to test makes use of DOM, which I do not believe would be included in the V8 shell. However if it is, that would be great to know, then I can rewrite the code to work sans-html file and test. But my guess is that V8 by itself is sans-DOM access, like node.js</p> <p>So to sum things up;</p> <ul> <li>Running Google Chrome Canary on Windows 7 ultimate x64</li> <li>Shortcut target is <code>"C:\Users\ArkahnX\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --no-sandbox --js-flags="--trace-opt --trace-bailout --trace-deop" --user-data-dir=C:\chromeDebugProfile</code></li> <li>Looking for whether <a href="http://code.google.com/p/v8/wiki/ProfilingChromiumWithV8" rel="noreferrer">this</a> type of output can be logged from chrome <ul> <li>If so, where would the log be?</li> <li>If not, what sort of output should I expect, and again, where could I find it?</li> </ul></li> </ul> <p>Thank you for any assistance!</p> <h1>Amending with how I got the answer to work for me</h1> <p>Using the below answer, I installed python to it's default directory, and modified the script so it had the full path to chrome. From there I set file type associations to .py files to python and executed the script. Now every time I open Chrome Canary it will run that python script (at least until I restart my pc, then I'll have to run that script again)</p> <p>The result is exactly what I was looking for!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload