r/programming • • Aug 03 '13

Google's new tracing framework for tuning web apps

http://google.github.io/tracing-framework/
452 Upvotes

59 comments sorted by

48

u/willvarfar Aug 03 '13 edited Aug 03 '13

Web Tracing Framework (WTF?)

And hosted on github, not Google Code?

Anyway, seriously, can't wait to try this out on my code.

Anyone know if its able to help profile and debug web workers?

The tooling for web workers has been non-existent and it makes them almost impossible to actually develop; even the normal built-in developer tools in both Chrome and FF provide zero coverage :(

13

u/kenman Aug 03 '13 edited Aug 03 '13

Anyone know if its able to help profile and debug web workers?

Install the plugin, enable it with the address bar icon, then click the gear that's in the bottom right of the page.

Under providers it has:

  • Chrome Debugging

  • DOM

  • Images

  • XMLHttpRequest

  • WebGL

  • Web Workers

edit: and Google apparently isn't afraid to use Github, they have 53 public repos.

3

u/sigma914 Aug 04 '13

XMLHttpRequest

Interesting case convention there.

1

u/kenman Aug 04 '13

You can blame MS for that.

1

u/IAmA_singularity Aug 05 '13

You can?

1

u/kenman Aug 05 '13

Actually, it looks like Mozilla is as much to blame. MS created IXMLHTTPRequest, but then Mozilla released it as XMLHttpRequest.

1

u/x-skeww Aug 05 '13

Well, back then, style guides simply lacked rules for that kind of thing. It took a few acronym collisions to figure out that this was actually a problem.

Nowadays, most modern style guides explicitly state that acronyms should be treated like regular words.

So, you'd write "XmlHttpRequest" or "innerHtml".

0

u/[deleted] Aug 03 '13

[deleted]

15

u/[deleted] Aug 04 '13

Which is good. They are experimenting. But they are not afraid to leave a space if another company comes up with something better. They rather not waste resources on half-assedly maintaining a product that isn't polished enough.

At the other end of the spectrum you have companies like Microsoft that spends millions polishing a facade that hardly recognizes any other services or technologies at all. That refuses to integrate with existing ecosystems and rather release a piece of shit copy they built their own so they can slap on their logo.

0

u/[deleted] Aug 04 '13

[deleted]

4

u/Flight714 Aug 04 '13 edited Aug 04 '13

We all agree that companies should compete.

Spooc is just advocating the idea that after they've competed and lost, they give up.

0

u/[deleted] Aug 04 '13

[deleted]

1

u/saltr Aug 05 '13

Honestly if Gcode is on the way out, then they are probably looking for a way to integrate it with Google Drive.

3

u/satayboy Aug 04 '13

I think Google has a service for searching the web too.

3

u/henk53 Aug 04 '13

Google Code seems to be on its way out indeed.

They recently disabled binary downloads for new projects for instance. With some vague explanation that someone once on a rainy Tuesday morning posted some not entirely legal jar file, and some guy called [email protected] left a negative comment about it.

Now if you want to offer binary downloads for your project you just have to put them in your Google driver and share that :X

-10

u/username223 Aug 03 '13

Given that they can link accounts and serve ads to a disproportionate number of rich young white guys, I bet it will stick around.

20

u/brownmatt Aug 03 '13

Ads on source code repositories doesn't sound very profitable to me.

10

u/[deleted] Aug 03 '13

Agreed, that's not a good revenue model, I pay github the $7 a month and am quite pleased.

2

u/[deleted] Aug 04 '13

[removed] — view removed comment

1

u/[deleted] Aug 04 '13

Thanks

1

u/username223 Aug 03 '13

I'd imagine the Analytics would be more useful to a big tech company, but ads could probably still move a few fancy keyboards and office chairs.

24

u/fnord123 Aug 03 '13

There are no ads on it from what I can tell. It's a pita to click down to start browsing the source. Basically, it sucks.

Consider the top level page What are some cool projects hosted here? I dunno.

Click the first label (Python) and first project. Editra-plugins. Obviously this is the most accessible project on Google Code because it's the most popular (?).

27 members have starred it. Who are these people? I don't know because it's not clicky.

Click on Source. Where's the source? Oh, click on Browse. Then drill down like 3 more clicks to find a file. There is a ConfigObjManager in one of the files. Let's search for it. The only search box searches across projects. Use it to search for ConfigObjManager. Nothing found. I guess it doesn't exist even though I copy-pasted it from a file.

Head back to the top level and go to the wiki. Where do I start? Well, the wiki page names aren't even alphabetical, so maybe it's a particular order intended for presentation? Nope, its sorted by revision date. Why is there an arrow on he columns implying it's sorted by each one? Oh look, a search wiki box. I guess we can search the wiki but not the source.

etc etc. Google Code should just be dropped. Or replaced with something good.

6

u/kenman Aug 03 '13

Possibly, but Github has stolen a lot of Google Code's thunder, and it doesn't have ads... so it's going to be hard for Google to introduce ads to Code without completely driving off a large portion of the users. I also think linking Code to G+ would drive everyone off. I wouldn't be surprised to see it go.

0

u/[deleted] Aug 03 '13

[deleted]

11

u/GiraffeDiver Aug 03 '13

Github (...) I imagine they will be a rival to SourceForge at some point.

You're joking, right?

3

u/kenman Aug 03 '13

I think he was referring to Google Code, since Google Code was pretty much the only alternative (and thus a direct rival) of SourceForge at the time of its introduction.

19

u/iamapizza Aug 03 '13

Another potentially great tool from google in their typical style of documentation. (Forgive me, I've been doing Angular recently and a lot of the docs look like that...)

2

u/[deleted] Aug 04 '13 edited Aug 04 '13

Hey, there's a potential $5000 google summer of code project for some college kid.

Edit: My bad, I just learned they don't accept documentation-only proposals.

1

u/willvarfar Aug 04 '13

Well, they should!

3

u/IneverSaidThat Aug 03 '13

At least the source code seem thoroughly commented.

I wish I could say the same thing for the Ember.JS internals..

8

u/[deleted] Aug 03 '13

I'm more interested in how that demo image works, because it's not an animated GIF/whatever, but an some sort of map instead with all static shots in it and then animated. Seems like quite the algorithm for encoding movies?

12

u/t-mu Aug 03 '13

Pretty interesting actually. Looks like it's a derivation from this one http://www.sublimetext.com/~jps/animated_gifs_the_hard_way.html

5

u/ishkeebibels Aug 03 '13

I haven't looked yet, but I'm going to take a shot in the dark by assuming this is the same technique used on the ST website.

1

u/ysangkok Aug 05 '13

Only works well if a small subset of the image changes within frames. This is animation (as in GIF), not video.

1

u/x-skeww Aug 05 '13

Seems like quite the algorithm for encoding movies?

Yes, lossless codecs usually work like that. This is similar. The difference is that those tiles are then tightly packed into one or several sprite sheets or texture atlases instead of being simply dumped into the stream.

0

u/fudeu Aug 04 '13

porn sites do that for decades.

4

u/Flight714 Aug 04 '13

Have you actually verified this assertion, by opening up a porn site and leaving the computer running for at least 20 years?

1

u/ysangkok Aug 05 '13

1

u/fudeu Sep 13 '13

LOL. he was joking man... changing the meaning of "doing that since decades" to "doing that for decades long"

... hope. otherwise this place is going down by the second.

5

u/[deleted] Aug 04 '13

What tool did they use for the animation on the front page?

3

u/fnord123 Aug 03 '13 edited Aug 03 '13

I don't do much web development but it looks like a tidy interface. As it can do remote Android tracing, it would be cool if it could work by accepting a provider interface like handling valgrind's memtool format. Or some probes format where you log trace points in your project (e.g. in go, C, or Python or what have you).

3

u/IneverSaidThat Aug 03 '13

Anyone else notice that they're using D3?

Mondo cool.

2

u/[deleted] Aug 03 '13

looks great

2

u/[deleted] Aug 03 '13

ELI5 what is this?

11

u/[deleted] Aug 03 '13 edited Aug 03 '13

It breaks down your code and analyzes how long it takes to execute each little thing, then visualizes it so you can easily see what parts of your code run the slowest and need tweaking. Super useful for optimizing your software.

-3

u/[deleted] Aug 04 '13

Is it useful for pure python code? Or just JS?

-4

u/fudeu Aug 04 '13

something already available before but now with a spiffy interface. So people here can finally notice it and comment how it willchange their life.

0

u/[deleted] Aug 03 '13

[deleted]

17

u/kennydude Aug 03 '13

No, github.io is just static hosting.

And the reason it's identical, is because it's using Bootstrap

2

u/Fredifrum Aug 03 '13 edited Feb 17 '26

This post was mass deleted and anonymized with Redact

languid subtract tie seemly squeeze distinct roof light subsequent racial

5

u/CH0K3R Aug 03 '13

Twitter made Bootstrap, not Github or Google...

2

u/Fredifrum Aug 03 '13 edited Feb 17 '26

This post was mass deleted and anonymized with Redact

cows lock gaze placid divide amusing memory grab special lavish

1

u/redwall_hp Aug 04 '13

Bootstrap is actually used by Twitter internally. It's the framework underlying their own design.

1

u/SeaCowVengeance Aug 04 '13

Yeah but this isn't a default bootstrap look. It's an obvious copy of twitter's page down to the background images, which just a color change. Wonder why they did this...

1

u/drabiter Aug 04 '13

For normal, random dev: "They're just lazy..."

For something like Google: "They spent more time in product dev, not web design!"

0

u/[deleted] Aug 03 '13

[deleted]

10

u/dashed Aug 03 '13

I'd be more concerned with the devs spending more time on the tracing framework than coming up with an original web design to present their project. Regardless how monotonous the design may be; it's at least presentable.

3

u/hc5duke Aug 03 '13

it's at least presentable.

Seriously. Have people already forgotten about how ugly Apache project homepages are?

(one exception, but it didn't start out as an Apache project.)

2

u/jerenept Aug 04 '13

one exception,

Holy shit a mobile site

9

u/plexxonic Aug 03 '13

Why reinvent the wheel?

0

u/[deleted] Aug 03 '13

[deleted]

8

u/clothes_are_optional Aug 03 '13

i'd have to kind of agree with this. i get and agree the "why reinvent the wheel" argument, but i also kind of get tired of seeing every website use bootstrap looking the same. but its whatever in the end. i'm more concerned about it working well

0

u/[deleted] Aug 03 '13

That's about the worst reason I've ever heard.