Tip:
Highlight text to annotate it
X
Earlier someone was asking about some tools related to go programming, so I wanted to
show a couple that I'm using here.
Starting out with oracle which is kind of a new thing I've been playing with a bit.
It's something that just sort of magically understands everything and helps you kind
of play around with it.
So I'm in the CBFS projects as far as oracle's concerned (it has a scope concept so it'll
only consider things that are in cbfs), but I'm in a third-party thing that I wrote called
go-broadcast and I'm looking from there.
Inside of go-broadcast I find a channel and I ask oracle the question, "hey, tell me about
this channel." Oracle will tell me where it's allocated. We'll start where I am and it'll
show me "it came from here, we send to it here, and we receive from it here."
Kind of interesting. ...do the same thing on another channel, look around a bit.
But then there's one channel in here that's used by everything. So this channel is what
the actual broadcast uses. It shows me the allocation inside of CBFS -- one of them (there's
two of them). CBFS allocates it here and here and then it has a means of sending. But I'm
going to start looking around a bit more.
So "launchJobs" -- tell me what calls this. Get me basically what a stack trace would
look like calling this function. So I can pop through that stack trace and see where
I'm coming from and that takes me all the way back to main where the goroutine is started.
Now I can kind of poke around in here