@@ -37,7 +37,8 @@ export namespace GeckoProfiler {
3737 | "memory"
3838 | "tracing"
3939 | "sandbox"
40- | "flows" ;
40+ | "flows"
41+ | "jssources" ;
4142
4243 type supports = "windowLength" ;
4344
@@ -77,55 +78,55 @@ export namespace GeckoProfiler {
7778 /**
7879 * Starts the profiler with the specified settings.
7980 */
80- start ( settings : StartSettingsType ) : void ;
81+ start ( settings : StartSettingsType ) : Promise < void > ;
8182
8283 /**
8384 * Stops the profiler and discards any captured profile data.
8485 */
85- stop ( ) : void ;
86+ stop ( ) : Promise < void > ;
8687
8788 /**
8889 * Pauses the profiler, keeping any profile data that is already written.
8990 */
90- pause ( ) : void ;
91+ pause ( ) : Promise < void > ;
9192
9293 /**
9394 * Resumes the profiler with the settings that were initially used to start it.
9495 */
95- resume ( ) : void ;
96+ resume ( ) : Promise < void > ;
9697
9798 /**
9899 * Gathers the profile data from the current profiling session, and writes it to disk.
99100 * The returned promise resolves to a path that locates the created file.
100101 *
101102 * @param fileName The name of the file inside the profile/profiler directory
102103 */
103- dumpProfileToFile ( fileName : string ) : void ;
104+ dumpProfileToFile ( fileName : string ) : Promise < void > ;
104105
105106 /**
106107 * Gathers the profile data from the current profiling session.
107108 */
108- getProfile ( ) : void ;
109+ getProfile ( ) : Promise < void > ;
109110
110111 /**
111112 * Gathers the profile data from the current profiling session. The returned promise resolves to an array buffer that
112113 * contains a JSON string.
113114 */
114- getProfileAsArrayBuffer ( ) : void ;
115+ getProfileAsArrayBuffer ( ) : Promise < void > ;
115116
116117 /**
117118 * Gathers the profile data from the current profiling session. The returned promise resolves to an array buffer that
118119 * contains a gzipped JSON string.
119120 */
120- getProfileAsGzippedArrayBuffer ( ) : void ;
121+ getProfileAsGzippedArrayBuffer ( ) : Promise < void > ;
121122
122123 /**
123124 * Gets the debug symbols for a particular library.
124125 *
125126 * @param debugName The name of the library's debug file. For example, 'xul.pdb
126127 * @param breakpadId The Breakpad ID of the library
127128 */
128- getSymbols ( debugName : string , breakpadId : string ) : void ;
129+ getSymbols ( debugName : string , breakpadId : string ) : Promise < void > ;
129130
130131 /**
131132 * Fires when the profiler starts/stops running.
0 commit comments