js/src/devtools/javascript-trace.d

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/devtools/javascript-trace.d	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/*
    1.10 + * javascript provider probes
    1.11 + *
    1.12 + * function-entry       (filename, classname, funcname)
    1.13 + * function-return      (filename, classname, funcname)
    1.14 + * object-create        (classname, *object)
    1.15 + * object-finalize      (NULL, classname, *object)
    1.16 + * execute-start        (filename, lineno)
    1.17 + * execute-done         (filename, lineno)
    1.18 + */
    1.19 +
    1.20 +provider javascript {
    1.21 + probe function__entry(const char *, const char *, const char *);
    1.22 + probe function__return(const char *, const char *, const char *);
    1.23 + /* XXX must use unsigned longs here instead of uintptr_t for OS X
    1.24 +    (Apple radar: 5194316 & 5565198) */
    1.25 + probe object__create(const char *, unsigned long);
    1.26 + probe object__finalize(const char *, const char *, unsigned long);
    1.27 + probe execute__start(const char *, int);
    1.28 + probe execute__done(const char *, int);
    1.29 +};
    1.30 +
    1.31 +/*
    1.32 +#pragma D attributes Unstable/Unstable/Common provider mozilla provider
    1.33 +#pragma D attributes Private/Private/Unknown provider mozilla module
    1.34 +#pragma D attributes Private/Private/Unknown provider mozilla function
    1.35 +#pragma D attributes Unstable/Unstable/Common provider mozilla name
    1.36 +*/
    1.37 +

mercurial