Skip to content
C/C++ Performance Profiler
C++ Python C CMake Shell PowerShell Other
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Add VSCode build and debug scripts. (#490) May 15, 2020
OrbitAsm Added new copyright header to cmake files. Apr 28, 2020
OrbitBase Implement MainThreadExecutor May 8, 2020
OrbitCore Remove Windows code from Function::Print May 15, 2020
OrbitDll Added new copyright header to cmake files. Apr 28, 2020
OrbitGgp Integrated GgpSshInfo with GgpClient Apr 28, 2020
OrbitGl Remove Windows code from Function::Print May 15, 2020
OrbitLinuxTracing Fixed reading the callchain record and added a flag (#468) May 13, 2020
OrbitPlugin Added new copyright header to cmake files. Apr 28, 2020
OrbitQt Change default grpc port. May 14, 2020
OrbitService Change default grpc port. May 14, 2020
OrbitSsh Added basic SFTP support to OrbitSsh. May 17, 2020
OrbitTest Added new copyright header to cmake files. Apr 28, 2020
OrbitUtils Update of VCPKG (#117) Feb 4, 2020
bin Removed dlls from source control as vcpkg now builds them locally Mar 31, 2019
cmake Added script to merge all third-party licenses into one file. May 12, 2020
contrib add symupload and dump_syms tools May 8, 2020
external Remove pointer to Pdb from Function May 15, 2020
kokoro Remove references to public key. (#487) May 14, 2020
logos Update README.md. (#420) Apr 29, 2020
protos Reply->Respose fixup for: Add protobufs and grpc Apr 29, 2020
.clang-format Feature/clang format (#112) Jan 28, 2020
.gitignore Modernizing cmake (#113) Jan 31, 2020
CMakeLists.txt Added OrbitSsh target, Socket and ResultType types May 15, 2020
DEVELOPMENT.md Rewrote windows helper scripts in powershell Apr 23, 2020
LICENSE Removed stlsoft library as it was simply used as a wrapper around Que… Jun 28, 2018
Orbit.h Feature/clang format (#112) Jan 28, 2020
README.md Add remote profiling to list of features. (#434) May 1, 2020
README_Windows_Cmake.txt Update of VCPKG (#117) Feb 4, 2020
TODO_Linux.txt Remove leftover BpfTrace references May 11, 2020
TODO_Windows.txt Update of VCPKG (#117) Feb 4, 2020
bootstrap-orbit-ggp.bat Deprecated bootstrap-orbit-ggp scripts. Apr 28, 2020
bootstrap-orbit-ggp.ps1 Deprecated bootstrap-orbit-ggp scripts. Apr 28, 2020
bootstrap-orbit-ggp.sh Deprecated bootstrap-orbit-ggp scripts. Apr 28, 2020
bootstrap-orbit.bat Enabled conan-config-install-script in bootstrap. Apr 28, 2020
bootstrap-orbit.ps1 Let bootstrap compile UI and service by default on internal machines. May 7, 2020
bootstrap-orbit.sh Let bootstrap compile UI and service by default on internal machines. May 7, 2020
build.bat Rewrote windows helper scripts in powershell Apr 23, 2020
build.ps1 Let build.ps1 handle build type for default profiles May 11, 2020
build.sh Changed default build profile to default_relwithdebinfo May 7, 2020
conanfile.py Added OrbitSsh target, Socket and ResultType types May 15, 2020
pack.bat Removed dlls from source control as vcpkg now builds them locally Mar 31, 2019
release_notes.txt Version 1.0.2 Jun 11, 2018
run.sh Fixed paths in run{,_service}.sh Apr 21, 2020
run_clang_format.sh Clang-format. Remove "contrib" directory from run_clang_format.sh. Mar 14, 2020
run_service.sh Fixed paths in run{,_service}.sh Apr 21, 2020
run_service_ssh.ps1 Change default grpc port. May 14, 2020
run_service_ssh.sh Change default grpc port. May 14, 2020

README.md

Alt text

Alt text

Orbit, the Open Runtime Binary Instrumentation Tool, is a standalone C/C++ profiler for Windows and Linux. Its main purpose is to help developers visualize the execution flow of a complex application.

The key differentiator with many existing tools is that no alteration to the target process is necessary. Orbit does not require you to change a single line of code. It doesn't require you to recompile or even relaunch the application you want to profile. Everything is done seamlessly, right when you need it. It requires zero integration time and zero iteration time.

Orbit combines sampling and dynamic instrumentation to optimize the profiling workflow. Sampling can quickly identify interesting functions to instrument. Dynamic instrumentation results in exact function entry and exit information which is presented in the form of per-thread hierarchical call graphs. Scheduling events are also shown to visualize when a thread was running and on what core.

Features

  • Dynamic Instrumentation (No Code Change Required)
  • Robust Sampling
  • Fast Debug Symbol Parsing
  • Context Switch Tracking
  • Disassembly View
  • Remote Profiling
  • User Sessions
  • Full Serialization of Captured Data
  • Tested on Unreal, Unity, Lumberyard, Qt, Doom3, PhysX, ...

Note

Orbit is undergoing a major overhaul. The focus has now shifted to the Linux version. Windows local profiling is currently broken in the master branch. It is possible however to profile Linux exectuable from a Windows UI instance. For Windows local profiling, please use the released binaries. Windows development will resume in the coming months.

Build

Please have a look at the first three sections of our development documentation. It describes how to build Orbit and what Compilers, Platforms, and Tools are supported and needed.

Workflow

  1. Select a process in the list of currently running processes in the "Home" tab.
  2. The list of loaded modules will appear on the bottom of the "Home" tab. If debug symbols were found for a module, it will be highlighted in blue.
  3. Right click on the module(s) for which you want to load debug information and select "Load Symbols". The "Functions", "Types" and "Globals" tabs will get populated.
  4. Select functions you wish to profile in the "Functions" tab by right clicking and choosing "Hook".
  5. In the "Capture" tab, start profiling by pressing 'X'. To stop profiling, press 'X' again. You can zoom time using the scroll wheel. To zoom vertically, hold 'CTRL' while scrolling. You can also ctrl+right-click and drag to zoom time. Press 'SPACE' to Zoom the last 2 seconds of capture.
  6. When you select a function in the "Capture" view, the full callstack will be available in the "Callstack" tab. You can select functions to be profiled in the callstack tab as well. Also, if code is available on your machine, it will be displayed in the "Code" tab.
  7. You can select sections of the per-thread sampling event track to get a sampling report of your selection.

Sessions

Once you have loaded the debug information for your modules and have chosen functions of interest, you can save your profiling session so that you won't have to do this manually again. To save a session, go to "File"->"Save Session"

Feedback

Questions and comments are more than welcome, please open an issue.

About

Orbit was created by Pierric Gimmig but is now actively developed and maintained by a team of engineers at Google.

License (BSD 2-clause)

Copyright (c) 2020 Pierric Gimmig. All rights reserved.

https://github.com/pierricgimmig/orbitprofiler

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

   1. Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.

   2. Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
You can’t perform that action at this time.