function profile(target, propertyKey, descriptor) {
    if (flags_1.IS_PROFILE) {
        return performProfile(target, propertyKey, descriptor);
    }
    else {
        // return as-is
        return descriptor;
    }
}
/**
 * A decorator that can profile a function.
 */
A decorator that can profile a function.
A decorator that can profile a function .
function profile(target, propertyKey, descriptor) {
    if (flags_1.IS_PROFILE) {
        return performProfile(target, propertyKey, descriptor);
    }
    else {
        return descriptor;
    }
}
function profile ( target , propertyKey , descriptor ) { if ( flags_1 . IS_PROFILE ) { return performProfile ( target , propertyKey , descriptor ) ; } else { return descriptor ; } }
A decorator that can profile a function.
A decorator that can profile a function .
// return as-is