17 ms·
Orbit: C/C++ Performance Profiler
- elromulous 3y agoAs a xoogler who's wanted to use this and invest in it, I'm curious about the state it's in. Google has been investing in perfetto, this is different, but has some redundancy. It would would be nice to know this isn't abandonware.
- deleted 3y ago[deleted]
- sjwhevvvvvsj 3y agoLooks like it may have been stadia related.
- wmf 3y agoAh, I was wondering why Google would develop a profiler with Wine/Proton support.
- sjwhevvvvvsj 3y agoStadia was such a monumental technical achievement, it was painful to see how they killed it without even seeing what it could be used for. Idiocy.
- tadfisher 3y agoThey killed the user-facing product because by all accounts it was a flop. The tech is still there but they're pivoting to a game-streaming SaaS/middleware thing for B2B.
- sjwhevvvvvsj 3y agoDid anything come of that?
- whizzter 3y agoStadia was dead-on-arrival (regardless of any technical merits), the uncertainty, money and amount of work required on games leaves developers skittish about unreliable platforms (or companies). Especially with something as a new techonology like with streaming games where people were more or less rightfully concerned about latency. All their product killings had already gotten someone to register the killedbygoogle.com domain on 2018-09-12 , that's a month before Google Stadia was even in closed beta. People were already joking about when they'd close Stadia when it was released. Adding insult to injury, everyone saw the absolute fuckup with the Terraria developer. You have an indie developer (that iirc was _featured_ in the Stadia promotions) who loses his work Google accounts making it impossible to work and in frustration announces that the game is dead (apparently his account and the game were re-instated but after a month people had lost track and the image damage was done). And yes, Google had some big-name contracts outside of just indies, but viability of a platform is always evaluated by it's entire scope (and iirc EA wasn't on board from day 1). Google has a huge image issue with being humanly unreachable, we accepted with when Google was a cool perky upstart with a do-no-evil creed that hadn't messed up enough yet, but it's far harder to swallow from a big company that we know are only doing it's automated account management to save money (and is so insulated that it takes a _month_ to unfreeze an account of someone that is even supposed to be your partner!). https://www.polygon.com/2021/3/18/22338396/terraria-google-stadia-developer-twitter-ultimatum https://www.polygon.com/2021/3/18/22338396/terraria-google-s...
- pjmlp 3y agoIdiocy was expecting game developers would blindly jump into GNU/Linux, Vulkan, with a stone age development experience versus what game console devkits and Windows look like. I wasn't surprised given how bad Google Android talks at game conferences tend to be, so they put up with Google's lack of game development bones. Android is only different because game developers don't have a option if they want to cover both top mobile platforms. Android GDK is still a joke versus what Apple puts out, let alone Microsoft, Sony and Nintendo.
- fsloth 3y agoAndroid development seems to be universally acknowledged as a backwater -experience compared to other platforms.
- pjmlp 3y agoWhile it certainly has helped to spread the spectrum of managed languages used across an OS stack, something that Microsoft failed at with Longhorn due to internal politics between DevDiv and WinDev, it has definitly plenty of warts, starting by the expectation to wait for the first set of bug fixes afer each "stable" SDK/IDE release, somehow all the previews, canary and beta are never enough.
- sahlab 3y agoI found the Stadia developer experience to be pretty solid. The visual studio integration was top notch and worked, with a few minor exceptions, without a hitch. Having worked with all major gaming platforms to come out in the last two decades, Stadia was certainly not the worst.
- pjmlp 3y agoSure, if one wanted to rewrite their engine. Shortly before Stadia was ramped down, there was a talk about Stadia team starting the Stadia Porting Toolkit, as they weren't getting enough studios interested in porting their XBox/Windows engines into Stadia, versus what they would get out of GeForce Now and Cloud Game Pass.
- elromulous 3y agoImho the thing that killed stadia was the pricing model. Buying games but not owning them outright* is a recipe for failure, especially for a company known for killing off services (and I say that as a xoogler with very mixed feelings). Stadia should have just had a monthly subscription fee. *Yes, with DRM, copy protection, online only, etc, it's debatable whether anyone owns any game. But conventional game ownership or even steam style is still _more_ ownership than the stadia case.
- OlivierLi 3y agoUsing some scripts/parsers to take DTrace/perf/Instruments/ETW data and transfer it to perfetto was one of the most exciting moments of my performance engineering career. It’s such a powerful thing compared to every single other workflow I’ve ever used. It just shows contention in a way that so hard to see otherwise. If this tool packages some of that in an easier to use package it’s going to be a great tool for some.
- protomolecule 3y ago"It just shows contention in a way that so hard to see otherwise." Could you elaborated on this? I've never used it myself.
- OlivierLi 3y agoYou start with a trace event you care about. You see it’s too slow. The first step is that you see explicitly that it’s not because the code is slow, you constantly get descheduled because there are thread state indicators above your event. Then you navigate to the CPU tracks find the thread(s) that were running instead of the one you care about and directly inspect their stacks. Sometimes almost nothing is running. Maybe contention is not on even on the CPU. So the “parsing styles was slow” conclusion you would get from only looking at histograms turns into “parsing styles was slow because I couldn’t get my fonts and that was slow because IndexDB was hogging the hard drive on another process” Edit: I should mention the user provided trace events are very important here. You get flow arrows really underlining task posting and IPC response as well as user interactions. Entry/Exit style uprobes on function are great but I found won’t get you all the way there on a large application.
- protomolecule 3y agoThanks!
- Ygg2 3y agoI'm curious how does it work on Windows?
- winrid 3y agoIt looks like all the top contributors no longer work on it much, based on github's insights.
- pzo 3y agoat least looks like they dropping support for windows "Orbit's focus has shifted to the Linux version. Windows local profiling is currently only supported partially and major features, such as dynamic instrumentation, are not yet implemented. It is possible however to profile Linux executables from a Windows UI instance. For Windows local profiling, you can still use the released binaries, but please note that they are deprecated and mostly undocumented."
- jonstewart 3y agoWhat’s the difference between this and libprofile in GPT? Just earlier in its transition to Google abandonware?
- rvnx 3y agoAccording to the presentation video, it is a profiling tool used for Stadia Games ( https://www.youtube.com/watch?v=8V-EPBPGZPs https://www.youtube.com/watch?v=8V-EPBPGZPs ) that can adapt to Unity and Unreal Engine. Which seems to make sense as the original developer has experience developing on video games. The main selling point of the tool is Dynamic instrumentation, which allows you to generate Flame charts without manual code annotation (you pick functions that you are interested into, and the profiler adds a hook to these functions in order to log the entry+exit time).
- jonstewart 3y agoThat’s what libprofiler does, too, sample the stack during runs.
- dataflow 3y agoAt first glance - how is this different from VTune?
- paulddraper 3y ago-
- dataflow 3y agoHuh? Isn't their most recent release 2024.0.1? https://www.intel.com/content/www/us/en/developer/articles/release-notes/vtune-profiler-release-notes.html https://www.intel.com/content/www/us/en/developer/articles/r...
- vient 3y agoLast VTune release was three months ago, can you elaborate?
- zokier 3y agoIts foss, vtune is proprietary.
- nnevatie 3y agoConsidering Stadia's demise, is orbit dead as well?
- Ono-Sendai 3y agoThere's a bunch of really good C++ profilers already. My current favourite is Tracy: https://github.com/wolfpld/tracy https://github.com/wolfpld/tracy
- forrestthewoods 3y agoTracy and Superluminal.
- Ono-Sendai 3y agoSuperluminal is great as well. I currently prefer Tracy because it gives faster profiling feedback.
- Keyframe 3y agoSuperluminal is windows (and xbox/playstation) only too, so it's off the board immediately.
- forrestthewoods 3y agoSadly there’s no one tool to rule them all. The only choice is to use the best tool for each platform. Superluminal is far and away the best profiler imho. Tracy is a great instrumented profiler. But damn do I love a good sampling profiler. Tracy can sample. But I had serious issues with it on one of my projects I could never get around.
- Keyframe 3y agoI agree, just that I haven't used nor developed for Windows for quite some time, so can't use it. For games it's a natural environment, of course.
- latenightcoding 3y agoNot if you are on macOS, the number of available profilers drops after every release. Same with leak detectors, valgrind doesnt work, sanitizers don't work anymore (even if you compile your own clang).
- eclectic29 3y agoAny googlers chime in? Is this any good? Or just a dump of one of their internal unused products?
- Williams77 3y ago[flagged]
- signa11 3y agoi don't really think there is _anything_ that comes even close to tracy https://github.com/wolfpld/tracy https://github.com/wolfpld/tracy. on top of this, given google's penchant for dumping projects aka abandonware, this would be an easy pass.
- cmovq 3y agoWhat surprised me about Tracy was just how easy it was to include in a C++ project. Just compile and link a single .cpp file (TracyClient.cpp)
- Jamie9912 3y agoOrbit doesn't require you to change any code at all, according to their readme
- Veserv 3y agoDoes tracy support automatic function entry/exit (FEE) traces (i.e. all functions are automatically instrumented with a start/end)? The documentation seems to indicate traces are all manual which is pretty inconvenient. There are very few cases where you even need manual instrumentation if you have FEE data from my experience.
- zokier 3y agoWhat about vtune? I was under the impression that it is pretty much the state of art in profiling
- maccard 3y agoETW Traces are the gold standard for most uses IMO - https://randomascii.wordpress.com/2015/09/24/etw-central/ https://randomascii.wordpress.com/2015/09/24/etw-central/. For architecture specific profiling, Vtune is still pretty good though.
- pjmlp 3y agoJFR is also quite good, for those on the JVM world.
- mvelbaum 3y agoCan anyone suggest a good non-sampling profiler for low latency apps? The only one I can think of is https://github.com/morganstanley/Xpedite https://github.com/morganstanley/Xpedite but it's not even clear that it is being maintained anymore.
- asdfasds 3y ago[dead]
- DeathArrow 3y ago> It supports native applications written in languages such as C, C++, Rust, or Go. Seeing it supports Go, I wonder if it supports other AoT compiled languages with garbage collectors, like .NET.
- Gupie 3y agoVTunes can tell you the average time that functions take to run but which tools can highlight functions that very occasionally run a lot slower than normal?
- yb303 3y agoWhy does it sound like a remake of FlameGraph?