diff --git a/package.json b/package.json index 154f5c223f5803935c47941c5411860b9cbc4810..9eab737bc93709d93f258767484c9ce6216a4fa5 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "semver": "^5.5.0", "spdlog": "0.7.2", "sudo-prompt": "8.2.0", - "v8-inspect-profiler": "^0.0.13", + "v8-inspect-profiler": "^0.0.18", "vscode-chokidar": "1.6.5", "vscode-debugprotocol": "1.33.0", "vscode-nsfw": "1.1.1", diff --git a/src/typings/v8-inspect-profiler.d.ts b/src/typings/v8-inspect-profiler.d.ts index c60190b3fe32d7846fac85856c841b309dfbd049..59d7f81cfa065b80f2c5a142ea9d54e03512ca6a 100644 --- a/src/typings/v8-inspect-profiler.d.ts +++ b/src/typings/v8-inspect-profiler.d.ts @@ -32,16 +32,24 @@ declare module 'v8-inspect-profiler' { } export interface Target { - description: string, - devtoolsFrontendUrl: string, - id: string, - title: string, - type: string, - url: string, - webSocketDebuggerUrl: string + description: string; + devtoolsFrontendUrl: string; + id: string; + title: string; + type: string; + url: string; + webSocketDebuggerUrl: string; } - export function startProfiling(options: { port: number, tries?: number, retyWait?: number, target?: (targets: Target[]) => Target }): PromiseLike; + export interface StartOptions { + port: number; + tries?: number; + retyWait?: number; + checkForPaused?: boolean; + target?: (targets: Target[]) => Target; + } + + export function startProfiling(options: StartOptions): PromiseLike; export function writeProfile(profile: ProfileResult, name?: string): PromiseLike; export function rewriteAbsolutePaths(profile: ProfileResult, replaceWith?: string): ProfileResult; } diff --git a/yarn.lock b/yarn.lock index 015aebf6f850301f3f9f2ea7b45cc7efd9823224..b32db1fbd69975f29e61bdddc2be80d5661f3886 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1260,7 +1260,7 @@ chownr@^1.0.1: resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181" integrity sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE= -chrome-remote-interface@^0.26.1: +chrome-remote-interface@0.26.1: version "0.26.1" resolved "https://registry.yarnpkg.com/chrome-remote-interface/-/chrome-remote-interface-0.26.1.tgz#6c7d4479742b6d236752d716a9bc2d322d7d8ad2" integrity sha512-ela482aJK0riFu05sl+zdbnb3ezMiqzwsqf/f/27HngWds+Fat3vcZWpIoDoeQuWMid/+LfKAteAYWaWPqsweg== @@ -8892,9 +8892,9 @@ uglifyjs-webpack-plugin@^1.2.4: worker-farm "^1.5.2" ultron@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.0.tgz#b07a2e6a541a815fc6a34ccd4533baec307ca864" - integrity sha1-sHoualQagV/Go0zNRTO67DB8qGQ= + version "1.1.1" + resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c" + integrity sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og== unc-path-regex@^0.1.0, unc-path-regex@^0.1.2: version "0.1.2" @@ -9069,12 +9069,12 @@ v8-compile-cache@^2.0.0: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.0.2.tgz#a428b28bb26790734c4fc8bc9fa106fccebf6a6c" integrity sha512-1wFuMUIM16MDJRCrpbpuEPTUGmM5QMUg0cr3KFwra2XgOgFcPGDQHDh3CszSCD2Zewc/dh/pamNEW8CbfDebUw== -v8-inspect-profiler@^0.0.13: - version "0.0.13" - resolved "https://registry.yarnpkg.com/v8-inspect-profiler/-/v8-inspect-profiler-0.0.13.tgz#4bf4e7d51a9df8ac6f9a1df5487a636cf4ec2c5a" - integrity sha512-t6EldtIyV35/AkwFH40Dikhv9ZzySdjFPdnhVlNR4EWA0cVvOXnr1djc35HhG57yFdbFGRb8A2cxAFuccc1uxw== +v8-inspect-profiler@^0.0.18: + version "0.0.18" + resolved "https://registry.yarnpkg.com/v8-inspect-profiler/-/v8-inspect-profiler-0.0.18.tgz#fbf6b92ae8fc815f5ab63eaf83c8a22792efa151" + integrity sha512-x4p/FWW5mSyLgdV5ipQwDw3Q68CMo36lgwZ72/PacsU4FgljbRyYqvIanw0regp01rxoQmnYRY634BbWJ2Ub6w== dependencies: - chrome-remote-interface "^0.26.1" + chrome-remote-interface "0.26.1" v8flags@^2.0.2: version "2.1.1"