What about allowing for a lambda in the environment to generate the mangled name? so i could do something like this
(set! (*s7* profname-mangle) (lambda (fn name) ((funclet fn) 'namespace) ":" name) and then profname-mangle gets called for each profiled function On Tue, 2021-09-28 at 01:32 +0200, Christos Vagias wrote: > CAUTION: This email originated from outside of the organization. Do > not click links or open attachments unless you recognize the sender. > > > I think it'd be also useful to take a moment to think about possible > future module system implementation, where for example tons of > modules > might have an init function, and how profile output should look like. > Not anything concrete, but about the possible naming styles and how > it'd relate to this scenario. > So, for example, a more s7-ish way would be to look for the > +namespace+ or +module+ symbol's value in the funclet. > Also, in my style I follow namespace/fun but others might prefer > namespace:fun style. Should that be also configurable via (*s7* > profile-prefix-separator) or not? > > About omitting "rootlet/" that could be a check in profile.scm. > > PS in the attached scm file above, I should have a top level (define > *ns-name* 'rootlet). This is implicitly added in my setup. > > On Tue, 28 Sept 2021 at 00:57, <[email protected]> wrote: > > An interesting problem! I lean toward (*s7* 'profile-prefix). And > > I'd omit "rootlet/" so that "normal" cases are easier to read. > > The second solution sounds problematic to me -- there's currently > > no space in the function cell for the profile position. > > > _______________________________________________ > Cmdist mailing list > [email protected] > https://cm-mail.stanford.edu/mailman/listinfo/cmdist _______________________________________________ Cmdist mailing list [email protected] https://cm-mail.stanford.edu/mailman/listinfo/cmdist
