Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: SmallTalk-like Message browser

by rhesa (Vicar)
on Jul 05, 2007 at 12:26 UTC ( #625035=note: print w/ replies, xml ) Need Help??

in reply to Re: SmallTalk-like Message browser
in thread SmallTalk-like Message browser

The output roughly means the following:

--- <filename>: <subname>: called from: <filename>:<subname>: <this many times>
The reason you're seeing odd results is a limitation of static analysis. If you have two packages with identically named methods, then their usage gets lumped together. That is, One->new and Two->new are grouped, and count as two calls to new.

# file package Classone; sub new { } 1; # file package Classtwo; sub new { } sub a_method { Classone->new; Classtwo->new; } 1;
Those two files result in: new: 2 a_method: {} new: 2

I don't think you can get meaningful results unless you have an interactive environment -- like Squeak -- that can track the class of the invocant. Still, this is a nice approximation. As long as you keep the limitations in mind, it can be quite useful.

Comment on Re^2: SmallTalk-like Message browser
Select or Download Code
Replies are listed 'Best First'.
Re^3: SmallTalk-like Message browser
by jdporter (Canon) on Jul 05, 2007 at 12:43 UTC
Re^3: SmallTalk-like Message browser
by diotalevi (Canon) on Jul 05, 2007 at 15:07 UTC

    I haven't seen how I can get Squeak's browser to decide which senders of "new" are the relevant senders. I've been of the opinion that it also punts on the subject of allomorphism. I figure that if ST punts, I'm ok to do so also.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://625035]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2015-12-01 21:16 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (27 votes), past polls