All Projects → uber → Nanoscope

uber / Nanoscope

Licence: apache-2.0
An extremely accurate Android method tracing tool.

Projects that are alternatives of or similar to Nanoscope

Stackimpact Nodejs
DEPRECATED StackImpact Node.js Profiler - Production-Grade Performance Profiler: CPU, memory allocations, async calls, errors, metrics, and more
Stars: ✭ 46 (-95.5%)
Mutual labels:  tracing, profiler
Spf4j
Simple performance framework for java
Stars: ✭ 184 (-82.01%)
Mutual labels:  tracing, profiler
Tracetools
Tools to process Go trace logs into various profiles. Complement for "go tool trace".
Stars: ✭ 105 (-89.74%)
Mutual labels:  tracing, performance
Liveprof
A performance monitoring system for running on live sites
Stars: ✭ 206 (-79.86%)
Mutual labels:  performance, profiler
Pprof
pprof is a tool for visualization and analysis of profiling data
Stars: ✭ 4,990 (+387.78%)
Mutual labels:  performance, profiler
Pyinstrument
🚴 Call stack profiler for Python. Shows you why your code is slow!
Stars: ✭ 3,870 (+278.3%)
Mutual labels:  performance, profiler
Pinpoint
APM, (Application Performance Management) tool for large-scale distributed systems.
Stars: ✭ 11,883 (+1061.58%)
Mutual labels:  tracing, performance
Visualvm
VisualVM is an All-in-One Java Troubleshooting Tool
Stars: ✭ 2,084 (+103.71%)
Mutual labels:  performance, profiler
Spark
spark is a performance profiling plugin/mod for Minecraft clients, servers and proxies.
Stars: ✭ 287 (-71.95%)
Mutual labels:  performance, profiler
Stackimpact Go
DEPRECATED StackImpact Go Profiler - Production-Grade Performance Profiler: CPU, memory allocations, blocking calls, errors, metrics, and more
Stars: ✭ 276 (-73.02%)
Mutual labels:  tracing, profiler
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (+122.97%)
Mutual labels:  performance, profiler
Profiler
Firefox Profiler — Web app for Firefox performance analysis
Stars: ✭ 546 (-46.63%)
Mutual labels:  performance, profiler
Tracy
C++ frame profiler
Stars: ✭ 3,115 (+204.5%)
Mutual labels:  performance, profiler
Etrace
Emacs Lisp Latency Tracing for the Chromium Catapult Trace Event Format
Stars: ✭ 45 (-95.6%)
Mutual labels:  tracing, performance
Hotspot
The Linux perf GUI for performance analysis.
Stars: ✭ 2,415 (+136.07%)
Mutual labels:  performance, profiler
Stagemonitor
an open source solution to application performance monitoring for java server applications
Stars: ✭ 1,664 (+62.66%)
Mutual labels:  tracing, performance
Tickprofiler
Profile your minecraft server: Find which entities and tile entities are making your server slow
Stars: ✭ 119 (-88.37%)
Mutual labels:  performance, profiler
Orbit
C/C++ Performance Profiler
Stars: ✭ 2,291 (+123.95%)
Mutual labels:  performance, profiler
Profilinggo
A quick tour (or reminder) of Go performance tools
Stars: ✭ 219 (-78.59%)
Mutual labels:  tracing, performance
Goappmonitor
Golang application performance data monitoring.
Stars: ✭ 478 (-53.27%)
Mutual labels:  tracing, profiler

Nanoscope

An extremely accurate Android method tracing tool.

Overview

Nanoscope is a method tracing tool optimized for extreme accuracy. The tool's overhead has been measured at around ~20 nanoseconds per method (on a Nexus 6P). To achieve this performance, the interesting pieces of Nanoscope are implemented as a fork of AOSP. For this reason, you'll need to use the Nanoscope Emulator or a device running the Nanoscope OS in order to make use of this tool. The entrypoint for launching the Nanoscope emulator, provisioning a device with the custom OS, and starting/stopping tracing is the nanoscope command-line tool described below.

For more information on motivation and architecture, check out our blog post and the wiki.

Installation

Install the nanoscope command

$ brew tap uber/nanoscope
$ brew install nanoscope

Nanoscope Emulator / Devices

Nanoscope only works with the Nanoscope Emulator or with a device that's running the Nanoscope OS.

Launch Nanoscope Emulator

# Prerequisites
#   - $ANDROID_HOME environment variable is set
#   - macOS

$ nanoscope emulator

Flash ADB-connected phone with the Nanoscope OS

If you want to use Nanoscope with a real device, you can execute the following command to replace your stock Android OS with the Nanoscope OS.

IMPORTANT: This will only work with a Nexus 6P - do not attempt to flash any other device

IMPORTANT: This command installs a custom operating system onto the device. There is no way to undo this operation.

# Prerequisites
#   - Nexus 6p is the only supported device at this time
#   - OEM Unlocking is enabled (Settings -> Developer Options -> OEM unlocking)
#   - Device is connected via ADB

$ nanoscope flash

Usage

Start tracing on ADB-connected device

$ nanoscope start
Tracing... (Press ENTER to stop)

Startup tracing

$ nanoscope start --package=com.example.app
Tracing... (Press ENTER to stop)

It's necessary to specify the application package if you want to start tracing before running the app.

Extensions

In addition to method tracing, Nanoscope can generate additional information about executing application (e.g. CPU utilization for a given thread, number of page faults, object allocation information). You can enable this additional functionality by using --ext parameter with nanoscope start command. It is also necessary to change the kernel setting of Nexus 6P as follows:

$ adb shell "echo -1 >/proc/sys/kernel/perf_event_paranoid"

Please note that extended functionality DOES NOT work on emulators (and is therefore not included in our emulator release). Additional information about this Nanoscope extension can be found here.

Upgrade

Client

$ brew update && brew upgrade nanoscope

OS

$ brew update && brew upgrade nanoscope
$ nanoscope flash

License

Copyright (C) 2017 Uber Technologies

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].