Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIProfiler.idl
3 : */
4 :
5 : #ifndef __gen_nsIProfiler_h__
6 : #define __gen_nsIProfiler_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "js/Value.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 : #include "nsTArrayForwardDeclare.h"
20 : class nsCString;
21 :
22 : /* starting interface: nsIProfilerStartParams */
23 : #define NS_IPROFILERSTARTPARAMS_IID_STR "0a175ba7-8fcf-4ce9-9c4b-ccc6272f4425"
24 :
25 : #define NS_IPROFILERSTARTPARAMS_IID \
26 : {0x0a175ba7, 0x8fcf, 0x4ce9, \
27 : { 0x9c, 0x4b, 0xcc, 0xc6, 0x27, 0x2f, 0x44, 0x25 }}
28 :
29 0 : class NS_NO_VTABLE nsIProfilerStartParams : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILERSTARTPARAMS_IID)
33 :
34 : /* readonly attribute uint32_t entries; */
35 : NS_IMETHOD GetEntries(uint32_t *aEntries) = 0;
36 :
37 : /* readonly attribute double interval; */
38 : NS_IMETHOD GetInterval(double *aInterval) = 0;
39 :
40 : /* readonly attribute uint32_t features; */
41 : NS_IMETHOD GetFeatures(uint32_t *aFeatures) = 0;
42 :
43 : /* [noscript,nostdcall,notxpcom] StringArrayRef getFilters (); */
44 : virtual const nsTArray<nsCString> & GetFilters(void) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfilerStartParams, NS_IPROFILERSTARTPARAMS_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSIPROFILERSTARTPARAMS \
52 : NS_IMETHOD GetEntries(uint32_t *aEntries) override; \
53 : NS_IMETHOD GetInterval(double *aInterval) override; \
54 : NS_IMETHOD GetFeatures(uint32_t *aFeatures) override; \
55 : virtual const nsTArray<nsCString> & GetFilters(void) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSIPROFILERSTARTPARAMS \
60 : nsresult GetEntries(uint32_t *aEntries); \
61 : nsresult GetInterval(double *aInterval); \
62 : nsresult GetFeatures(uint32_t *aFeatures); \
63 : const nsTArray<nsCString> & GetFilters(void);
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
66 : #define NS_FORWARD_NSIPROFILERSTARTPARAMS(_to) \
67 : NS_IMETHOD GetEntries(uint32_t *aEntries) override { return _to GetEntries(aEntries); } \
68 : NS_IMETHOD GetInterval(double *aInterval) override { return _to GetInterval(aInterval); } \
69 : NS_IMETHOD GetFeatures(uint32_t *aFeatures) override { return _to GetFeatures(aFeatures); } \
70 : virtual const nsTArray<nsCString> & GetFilters(void) override { return _to GetFilters(); }
71 :
72 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
73 : #define NS_FORWARD_SAFE_NSIPROFILERSTARTPARAMS(_to) \
74 : NS_IMETHOD GetEntries(uint32_t *aEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntries(aEntries); } \
75 : NS_IMETHOD GetInterval(double *aInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterval(aInterval); } \
76 : NS_IMETHOD GetFeatures(uint32_t *aFeatures) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatures(aFeatures); } \
77 : virtual const nsTArray<nsCString> & GetFilters(void) override;
78 :
79 : #if 0
80 : /* Use the code below as a template for the implementation class for this interface. */
81 :
82 : /* Header file */
83 : class nsProfilerStartParams : public nsIProfilerStartParams
84 : {
85 : public:
86 : NS_DECL_ISUPPORTS
87 : NS_DECL_NSIPROFILERSTARTPARAMS
88 :
89 : nsProfilerStartParams();
90 :
91 : private:
92 : ~nsProfilerStartParams();
93 :
94 : protected:
95 : /* additional members */
96 : };
97 :
98 : /* Implementation file */
99 : NS_IMPL_ISUPPORTS(nsProfilerStartParams, nsIProfilerStartParams)
100 :
101 : nsProfilerStartParams::nsProfilerStartParams()
102 : {
103 : /* member initializers and constructor code */
104 : }
105 :
106 : nsProfilerStartParams::~nsProfilerStartParams()
107 : {
108 : /* destructor code */
109 : }
110 :
111 : /* readonly attribute uint32_t entries; */
112 : NS_IMETHODIMP nsProfilerStartParams::GetEntries(uint32_t *aEntries)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* readonly attribute double interval; */
118 : NS_IMETHODIMP nsProfilerStartParams::GetInterval(double *aInterval)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* readonly attribute uint32_t features; */
124 : NS_IMETHODIMP nsProfilerStartParams::GetFeatures(uint32_t *aFeatures)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* [noscript,nostdcall,notxpcom] StringArrayRef getFilters (); */
130 : const nsTArray<nsCString> & nsProfilerStartParams::GetFilters()
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : /* starting interface: nsIProfiler */
140 : #define NS_IPROFILER_IID_STR "ead3f75c-0e0e-4fbb-901c-1e5392ef5b2a"
141 :
142 : #define NS_IPROFILER_IID \
143 : {0xead3f75c, 0x0e0e, 0x4fbb, \
144 : { 0x90, 0x1c, 0x1e, 0x53, 0x92, 0xef, 0x5b, 0x2a }}
145 :
146 0 : class NS_NO_VTABLE nsIProfiler : public nsISupports {
147 : public:
148 :
149 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILER_IID)
150 :
151 : /* boolean CanProfile (); */
152 : NS_IMETHOD CanProfile(bool *_retval) = 0;
153 :
154 : /* void StartProfiler (in uint32_t aEntries, in double aInterval, [array, size_is (aFeatureCount)] in string aFeatures, in uint32_t aFeatureCount, [array, size_is (aFilterCount), optional] in string aFilters, [optional] in uint32_t aFilterCount); */
155 : NS_IMETHOD StartProfiler(uint32_t aEntries, double aInterval, const char * *aFeatures, uint32_t aFeatureCount, const char * *aFilters, uint32_t aFilterCount) = 0;
156 :
157 : /* void StopProfiler (); */
158 : NS_IMETHOD StopProfiler(void) = 0;
159 :
160 : /* boolean IsPaused (); */
161 : NS_IMETHOD IsPaused(bool *_retval) = 0;
162 :
163 : /* void PauseSampling (); */
164 : NS_IMETHOD PauseSampling(void) = 0;
165 :
166 : /* void ResumeSampling (); */
167 : NS_IMETHOD ResumeSampling(void) = 0;
168 :
169 : /* void AddMarker (in string aMarker); */
170 : NS_IMETHOD AddMarker(const char * aMarker) = 0;
171 :
172 : /* string GetProfile ([optional] in double aSinceTime); */
173 : NS_IMETHOD GetProfile(double aSinceTime, char * *_retval) = 0;
174 :
175 : /* [implicit_jscontext] jsval getProfileData ([optional] in double aSinceTime); */
176 : NS_IMETHOD GetProfileData(double aSinceTime, JSContext* cx, JS::MutableHandleValue _retval) = 0;
177 :
178 : /* [implicit_jscontext] nsISupports getProfileDataAsync ([optional] in double aSinceTime); */
179 : NS_IMETHOD GetProfileDataAsync(double aSinceTime, JSContext* cx, nsISupports * *_retval) = 0;
180 :
181 : /* [implicit_jscontext] nsISupports getProfileDataAsArrayBuffer ([optional] in double aSinceTime); */
182 : NS_IMETHOD GetProfileDataAsArrayBuffer(double aSinceTime, JSContext* cx, nsISupports * *_retval) = 0;
183 :
184 : /* void dumpProfileToFileAsync (in ACString aFilename, [optional] in double aSinceTime); */
185 : NS_IMETHOD DumpProfileToFileAsync(const nsACString & aFilename, double aSinceTime) = 0;
186 :
187 : /* boolean IsActive (); */
188 : NS_IMETHOD IsActive(bool *_retval) = 0;
189 :
190 : /* void GetFeatures (out uint32_t aCount, [array, size_is (aCount), retval] out string aFeatures); */
191 : NS_IMETHOD GetFeatures(uint32_t *aCount, char * **aFeatures) = 0;
192 :
193 : /* void GetAllFeatures (out uint32_t aCount, [array, size_is (aCount), retval] out string aFeatures); */
194 : NS_IMETHOD GetAllFeatures(uint32_t *aCount, char * **aFeatures) = 0;
195 :
196 : /* [noscript] readonly attribute nsIProfilerStartParams startParams; */
197 : NS_IMETHOD GetStartParams(nsIProfilerStartParams * *aStartParams) = 0;
198 :
199 : /* void GetBufferInfo (out uint32_t aCurrentPosition, out uint32_t aTotalSize, out uint32_t aGeneration); */
200 : NS_IMETHOD GetBufferInfo(uint32_t *aCurrentPosition, uint32_t *aTotalSize, uint32_t *aGeneration) = 0;
201 :
202 : /* double getElapsedTime (); */
203 : NS_IMETHOD GetElapsedTime(double *_retval) = 0;
204 :
205 : /* [implicit_jscontext] readonly attribute jsval sharedLibraries; */
206 : NS_IMETHOD GetSharedLibraries(JSContext* cx, JS::MutableHandleValue aSharedLibraries) = 0;
207 :
208 : /* void dumpProfileToFile (in string aFilename); */
209 : NS_IMETHOD DumpProfileToFile(const char * aFilename) = 0;
210 :
211 : /* [noscript,nostdcall,notxpcom] void receiveShutdownProfile (in nsCString aProfile); */
212 : virtual void ReceiveShutdownProfile(const nsCString & aProfile) = 0;
213 :
214 : };
215 :
216 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfiler, NS_IPROFILER_IID)
217 :
218 : /* Use this macro when declaring classes that implement this interface. */
219 : #define NS_DECL_NSIPROFILER \
220 : NS_IMETHOD CanProfile(bool *_retval) override; \
221 : NS_IMETHOD StartProfiler(uint32_t aEntries, double aInterval, const char * *aFeatures, uint32_t aFeatureCount, const char * *aFilters, uint32_t aFilterCount) override; \
222 : NS_IMETHOD StopProfiler(void) override; \
223 : NS_IMETHOD IsPaused(bool *_retval) override; \
224 : NS_IMETHOD PauseSampling(void) override; \
225 : NS_IMETHOD ResumeSampling(void) override; \
226 : NS_IMETHOD AddMarker(const char * aMarker) override; \
227 : NS_IMETHOD GetProfile(double aSinceTime, char * *_retval) override; \
228 : NS_IMETHOD GetProfileData(double aSinceTime, JSContext* cx, JS::MutableHandleValue _retval) override; \
229 : NS_IMETHOD GetProfileDataAsync(double aSinceTime, JSContext* cx, nsISupports * *_retval) override; \
230 : NS_IMETHOD GetProfileDataAsArrayBuffer(double aSinceTime, JSContext* cx, nsISupports * *_retval) override; \
231 : NS_IMETHOD DumpProfileToFileAsync(const nsACString & aFilename, double aSinceTime) override; \
232 : NS_IMETHOD IsActive(bool *_retval) override; \
233 : NS_IMETHOD GetFeatures(uint32_t *aCount, char * **aFeatures) override; \
234 : NS_IMETHOD GetAllFeatures(uint32_t *aCount, char * **aFeatures) override; \
235 : NS_IMETHOD GetStartParams(nsIProfilerStartParams * *aStartParams) override; \
236 : NS_IMETHOD GetBufferInfo(uint32_t *aCurrentPosition, uint32_t *aTotalSize, uint32_t *aGeneration) override; \
237 : NS_IMETHOD GetElapsedTime(double *_retval) override; \
238 : NS_IMETHOD GetSharedLibraries(JSContext* cx, JS::MutableHandleValue aSharedLibraries) override; \
239 : NS_IMETHOD DumpProfileToFile(const char * aFilename) override; \
240 : virtual void ReceiveShutdownProfile(const nsCString & aProfile) override;
241 :
242 : /* Use this macro when declaring the members of this interface when the
243 : class doesn't implement the interface. This is useful for forwarding. */
244 : #define NS_DECL_NON_VIRTUAL_NSIPROFILER \
245 : nsresult CanProfile(bool *_retval); \
246 : nsresult StartProfiler(uint32_t aEntries, double aInterval, const char * *aFeatures, uint32_t aFeatureCount, const char * *aFilters, uint32_t aFilterCount); \
247 : nsresult StopProfiler(void); \
248 : nsresult IsPaused(bool *_retval); \
249 : nsresult PauseSampling(void); \
250 : nsresult ResumeSampling(void); \
251 : nsresult AddMarker(const char * aMarker); \
252 : nsresult GetProfile(double aSinceTime, char * *_retval); \
253 : nsresult GetProfileData(double aSinceTime, JSContext* cx, JS::MutableHandleValue _retval); \
254 : nsresult GetProfileDataAsync(double aSinceTime, JSContext* cx, nsISupports * *_retval); \
255 : nsresult GetProfileDataAsArrayBuffer(double aSinceTime, JSContext* cx, nsISupports * *_retval); \
256 : nsresult DumpProfileToFileAsync(const nsACString & aFilename, double aSinceTime); \
257 : nsresult IsActive(bool *_retval); \
258 : nsresult GetFeatures(uint32_t *aCount, char * **aFeatures); \
259 : nsresult GetAllFeatures(uint32_t *aCount, char * **aFeatures); \
260 : nsresult GetStartParams(nsIProfilerStartParams * *aStartParams); \
261 : nsresult GetBufferInfo(uint32_t *aCurrentPosition, uint32_t *aTotalSize, uint32_t *aGeneration); \
262 : nsresult GetElapsedTime(double *_retval); \
263 : nsresult GetSharedLibraries(JSContext* cx, JS::MutableHandleValue aSharedLibraries); \
264 : nsresult DumpProfileToFile(const char * aFilename); \
265 : void ReceiveShutdownProfile(const nsCString & aProfile);
266 :
267 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
268 : #define NS_FORWARD_NSIPROFILER(_to) \
269 : NS_IMETHOD CanProfile(bool *_retval) override { return _to CanProfile(_retval); } \
270 : NS_IMETHOD StartProfiler(uint32_t aEntries, double aInterval, const char * *aFeatures, uint32_t aFeatureCount, const char * *aFilters, uint32_t aFilterCount) override { return _to StartProfiler(aEntries, aInterval, aFeatures, aFeatureCount, aFilters, aFilterCount); } \
271 : NS_IMETHOD StopProfiler(void) override { return _to StopProfiler(); } \
272 : NS_IMETHOD IsPaused(bool *_retval) override { return _to IsPaused(_retval); } \
273 : NS_IMETHOD PauseSampling(void) override { return _to PauseSampling(); } \
274 : NS_IMETHOD ResumeSampling(void) override { return _to ResumeSampling(); } \
275 : NS_IMETHOD AddMarker(const char * aMarker) override { return _to AddMarker(aMarker); } \
276 : NS_IMETHOD GetProfile(double aSinceTime, char * *_retval) override { return _to GetProfile(aSinceTime, _retval); } \
277 : NS_IMETHOD GetProfileData(double aSinceTime, JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetProfileData(aSinceTime, cx, _retval); } \
278 : NS_IMETHOD GetProfileDataAsync(double aSinceTime, JSContext* cx, nsISupports * *_retval) override { return _to GetProfileDataAsync(aSinceTime, cx, _retval); } \
279 : NS_IMETHOD GetProfileDataAsArrayBuffer(double aSinceTime, JSContext* cx, nsISupports * *_retval) override { return _to GetProfileDataAsArrayBuffer(aSinceTime, cx, _retval); } \
280 : NS_IMETHOD DumpProfileToFileAsync(const nsACString & aFilename, double aSinceTime) override { return _to DumpProfileToFileAsync(aFilename, aSinceTime); } \
281 : NS_IMETHOD IsActive(bool *_retval) override { return _to IsActive(_retval); } \
282 : NS_IMETHOD GetFeatures(uint32_t *aCount, char * **aFeatures) override { return _to GetFeatures(aCount, aFeatures); } \
283 : NS_IMETHOD GetAllFeatures(uint32_t *aCount, char * **aFeatures) override { return _to GetAllFeatures(aCount, aFeatures); } \
284 : NS_IMETHOD GetStartParams(nsIProfilerStartParams * *aStartParams) override { return _to GetStartParams(aStartParams); } \
285 : NS_IMETHOD GetBufferInfo(uint32_t *aCurrentPosition, uint32_t *aTotalSize, uint32_t *aGeneration) override { return _to GetBufferInfo(aCurrentPosition, aTotalSize, aGeneration); } \
286 : NS_IMETHOD GetElapsedTime(double *_retval) override { return _to GetElapsedTime(_retval); } \
287 : NS_IMETHOD GetSharedLibraries(JSContext* cx, JS::MutableHandleValue aSharedLibraries) override { return _to GetSharedLibraries(cx, aSharedLibraries); } \
288 : NS_IMETHOD DumpProfileToFile(const char * aFilename) override { return _to DumpProfileToFile(aFilename); } \
289 : virtual void ReceiveShutdownProfile(const nsCString & aProfile) override { return _to ReceiveShutdownProfile(aProfile); }
290 :
291 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
292 : #define NS_FORWARD_SAFE_NSIPROFILER(_to) \
293 : NS_IMETHOD CanProfile(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanProfile(_retval); } \
294 : NS_IMETHOD StartProfiler(uint32_t aEntries, double aInterval, const char * *aFeatures, uint32_t aFeatureCount, const char * *aFilters, uint32_t aFilterCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartProfiler(aEntries, aInterval, aFeatures, aFeatureCount, aFilters, aFilterCount); } \
295 : NS_IMETHOD StopProfiler(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopProfiler(); } \
296 : NS_IMETHOD IsPaused(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPaused(_retval); } \
297 : NS_IMETHOD PauseSampling(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PauseSampling(); } \
298 : NS_IMETHOD ResumeSampling(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeSampling(); } \
299 : NS_IMETHOD AddMarker(const char * aMarker) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMarker(aMarker); } \
300 : NS_IMETHOD GetProfile(double aSinceTime, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfile(aSinceTime, _retval); } \
301 : NS_IMETHOD GetProfileData(double aSinceTime, JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileData(aSinceTime, cx, _retval); } \
302 : NS_IMETHOD GetProfileDataAsync(double aSinceTime, JSContext* cx, nsISupports * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileDataAsync(aSinceTime, cx, _retval); } \
303 : NS_IMETHOD GetProfileDataAsArrayBuffer(double aSinceTime, JSContext* cx, nsISupports * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileDataAsArrayBuffer(aSinceTime, cx, _retval); } \
304 : NS_IMETHOD DumpProfileToFileAsync(const nsACString & aFilename, double aSinceTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DumpProfileToFileAsync(aFilename, aSinceTime); } \
305 : NS_IMETHOD IsActive(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsActive(_retval); } \
306 : NS_IMETHOD GetFeatures(uint32_t *aCount, char * **aFeatures) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFeatures(aCount, aFeatures); } \
307 : NS_IMETHOD GetAllFeatures(uint32_t *aCount, char * **aFeatures) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllFeatures(aCount, aFeatures); } \
308 : NS_IMETHOD GetStartParams(nsIProfilerStartParams * *aStartParams) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartParams(aStartParams); } \
309 : NS_IMETHOD GetBufferInfo(uint32_t *aCurrentPosition, uint32_t *aTotalSize, uint32_t *aGeneration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBufferInfo(aCurrentPosition, aTotalSize, aGeneration); } \
310 : NS_IMETHOD GetElapsedTime(double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElapsedTime(_retval); } \
311 : NS_IMETHOD GetSharedLibraries(JSContext* cx, JS::MutableHandleValue aSharedLibraries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharedLibraries(cx, aSharedLibraries); } \
312 : NS_IMETHOD DumpProfileToFile(const char * aFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DumpProfileToFile(aFilename); } \
313 : virtual void ReceiveShutdownProfile(const nsCString & aProfile) override;
314 :
315 : #if 0
316 : /* Use the code below as a template for the implementation class for this interface. */
317 :
318 : /* Header file */
319 : class nsProfiler : public nsIProfiler
320 : {
321 : public:
322 : NS_DECL_ISUPPORTS
323 : NS_DECL_NSIPROFILER
324 :
325 : nsProfiler();
326 :
327 : private:
328 : ~nsProfiler();
329 :
330 : protected:
331 : /* additional members */
332 : };
333 :
334 : /* Implementation file */
335 : NS_IMPL_ISUPPORTS(nsProfiler, nsIProfiler)
336 :
337 : nsProfiler::nsProfiler()
338 : {
339 : /* member initializers and constructor code */
340 : }
341 :
342 : nsProfiler::~nsProfiler()
343 : {
344 : /* destructor code */
345 : }
346 :
347 : /* boolean CanProfile (); */
348 : NS_IMETHODIMP nsProfiler::CanProfile(bool *_retval)
349 : {
350 : return NS_ERROR_NOT_IMPLEMENTED;
351 : }
352 :
353 : /* void StartProfiler (in uint32_t aEntries, in double aInterval, [array, size_is (aFeatureCount)] in string aFeatures, in uint32_t aFeatureCount, [array, size_is (aFilterCount), optional] in string aFilters, [optional] in uint32_t aFilterCount); */
354 : NS_IMETHODIMP nsProfiler::StartProfiler(uint32_t aEntries, double aInterval, const char * *aFeatures, uint32_t aFeatureCount, const char * *aFilters, uint32_t aFilterCount)
355 : {
356 : return NS_ERROR_NOT_IMPLEMENTED;
357 : }
358 :
359 : /* void StopProfiler (); */
360 : NS_IMETHODIMP nsProfiler::StopProfiler()
361 : {
362 : return NS_ERROR_NOT_IMPLEMENTED;
363 : }
364 :
365 : /* boolean IsPaused (); */
366 : NS_IMETHODIMP nsProfiler::IsPaused(bool *_retval)
367 : {
368 : return NS_ERROR_NOT_IMPLEMENTED;
369 : }
370 :
371 : /* void PauseSampling (); */
372 : NS_IMETHODIMP nsProfiler::PauseSampling()
373 : {
374 : return NS_ERROR_NOT_IMPLEMENTED;
375 : }
376 :
377 : /* void ResumeSampling (); */
378 : NS_IMETHODIMP nsProfiler::ResumeSampling()
379 : {
380 : return NS_ERROR_NOT_IMPLEMENTED;
381 : }
382 :
383 : /* void AddMarker (in string aMarker); */
384 : NS_IMETHODIMP nsProfiler::AddMarker(const char * aMarker)
385 : {
386 : return NS_ERROR_NOT_IMPLEMENTED;
387 : }
388 :
389 : /* string GetProfile ([optional] in double aSinceTime); */
390 : NS_IMETHODIMP nsProfiler::GetProfile(double aSinceTime, char * *_retval)
391 : {
392 : return NS_ERROR_NOT_IMPLEMENTED;
393 : }
394 :
395 : /* [implicit_jscontext] jsval getProfileData ([optional] in double aSinceTime); */
396 : NS_IMETHODIMP nsProfiler::GetProfileData(double aSinceTime, JSContext* cx, JS::MutableHandleValue _retval)
397 : {
398 : return NS_ERROR_NOT_IMPLEMENTED;
399 : }
400 :
401 : /* [implicit_jscontext] nsISupports getProfileDataAsync ([optional] in double aSinceTime); */
402 : NS_IMETHODIMP nsProfiler::GetProfileDataAsync(double aSinceTime, JSContext* cx, nsISupports * *_retval)
403 : {
404 : return NS_ERROR_NOT_IMPLEMENTED;
405 : }
406 :
407 : /* [implicit_jscontext] nsISupports getProfileDataAsArrayBuffer ([optional] in double aSinceTime); */
408 : NS_IMETHODIMP nsProfiler::GetProfileDataAsArrayBuffer(double aSinceTime, JSContext* cx, nsISupports * *_retval)
409 : {
410 : return NS_ERROR_NOT_IMPLEMENTED;
411 : }
412 :
413 : /* void dumpProfileToFileAsync (in ACString aFilename, [optional] in double aSinceTime); */
414 : NS_IMETHODIMP nsProfiler::DumpProfileToFileAsync(const nsACString & aFilename, double aSinceTime)
415 : {
416 : return NS_ERROR_NOT_IMPLEMENTED;
417 : }
418 :
419 : /* boolean IsActive (); */
420 : NS_IMETHODIMP nsProfiler::IsActive(bool *_retval)
421 : {
422 : return NS_ERROR_NOT_IMPLEMENTED;
423 : }
424 :
425 : /* void GetFeatures (out uint32_t aCount, [array, size_is (aCount), retval] out string aFeatures); */
426 : NS_IMETHODIMP nsProfiler::GetFeatures(uint32_t *aCount, char * **aFeatures)
427 : {
428 : return NS_ERROR_NOT_IMPLEMENTED;
429 : }
430 :
431 : /* void GetAllFeatures (out uint32_t aCount, [array, size_is (aCount), retval] out string aFeatures); */
432 : NS_IMETHODIMP nsProfiler::GetAllFeatures(uint32_t *aCount, char * **aFeatures)
433 : {
434 : return NS_ERROR_NOT_IMPLEMENTED;
435 : }
436 :
437 : /* [noscript] readonly attribute nsIProfilerStartParams startParams; */
438 : NS_IMETHODIMP nsProfiler::GetStartParams(nsIProfilerStartParams * *aStartParams)
439 : {
440 : return NS_ERROR_NOT_IMPLEMENTED;
441 : }
442 :
443 : /* void GetBufferInfo (out uint32_t aCurrentPosition, out uint32_t aTotalSize, out uint32_t aGeneration); */
444 : NS_IMETHODIMP nsProfiler::GetBufferInfo(uint32_t *aCurrentPosition, uint32_t *aTotalSize, uint32_t *aGeneration)
445 : {
446 : return NS_ERROR_NOT_IMPLEMENTED;
447 : }
448 :
449 : /* double getElapsedTime (); */
450 : NS_IMETHODIMP nsProfiler::GetElapsedTime(double *_retval)
451 : {
452 : return NS_ERROR_NOT_IMPLEMENTED;
453 : }
454 :
455 : /* [implicit_jscontext] readonly attribute jsval sharedLibraries; */
456 : NS_IMETHODIMP nsProfiler::GetSharedLibraries(JSContext* cx, JS::MutableHandleValue aSharedLibraries)
457 : {
458 : return NS_ERROR_NOT_IMPLEMENTED;
459 : }
460 :
461 : /* void dumpProfileToFile (in string aFilename); */
462 : NS_IMETHODIMP nsProfiler::DumpProfileToFile(const char * aFilename)
463 : {
464 : return NS_ERROR_NOT_IMPLEMENTED;
465 : }
466 :
467 : /* [noscript,nostdcall,notxpcom] void receiveShutdownProfile (in nsCString aProfile); */
468 : void nsProfiler::ReceiveShutdownProfile(const nsCString & aProfile)
469 : {
470 : return NS_ERROR_NOT_IMPLEMENTED;
471 : }
472 :
473 : /* End of implementation class template. */
474 : #endif
475 :
476 :
477 : #endif /* __gen_nsIProfiler_h__ */
|