build: add support for Electron trace events (#17920)

This commit is contained in:
Samuel Attard 2019-04-29 15:28:30 -07:00 committed by Shelley Vohr
parent cc1e8ecef6
commit 4a3771ff7f
3 changed files with 23 additions and 0 deletions

View file

@ -205,6 +205,7 @@ base::FilePath::StringType NodeBindings::GetHelperResourcesPath() {
}
void NodeBindings::Initialize() {
TRACE_EVENT0("electron", "NodeBindings::Initialize");
// Open node's error reporting system for browser process.
node::g_standalone_mode = browser_env_ == BROWSER;
node::g_upstream_node_mode = false;