GithubHelp home page GithubHelp logo

test-mass-forker-org-1 / ide-perf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/ide-perf

0.0 0.0 0.0 987 KB

An IntelliJ plugin for analyzing the performance of the IDE itself

License: Apache License 2.0

Java 2.23% Kotlin 97.77%

ide-perf's Introduction

build status plugin version

IDE Perf: Performance diagnostics for IntelliJ Platform

This is a plugin for IntelliJ-based IDEs that gives real-time insight into the performance of the IDE itself. You can install it from the JetBrains Plugin Repository, then see the user guide for usage instructions. Feel free to file an issue if you find a bug or have a feature request. Note: this is not an officially supported Google product.

Features

  • Method tracer: choose some methods, then get call counts and overhead measurements in real time as the IDE is being used. Methods are traced on-the-fly using bytecode instrumentation. There is both a method list view and a call tree view. Tracing commands are auto-completed as you type. Tracing overhead is low (approx. 200 ns per call).

  • Parameter tracer: track how many times a method is called with a specific argument. For example, you can trace the first parameter of JavaPsiFacade.findClass to visualize class search queries.

  • CachedValue tracer: track CachedValue hit ratios in real time.

Here is a screenshot of the method tracer:

screenshot

Comparison to other tools

A batch profiler such as YourKit is still the first tool you should reach for when diagnosing an unknown performance issue. However, IDE Perf is useful when you want to dig deeper into a specific issue.

Advantages

  • IDE Perf displays data in real time. This is useful in user-interactive scenarios because you will notice patterns in the way the data changes in response to specific user actions.

  • Tracing is targeted at only a small set of methods that you care about. This leads to low tracing overhead, accurate time measurements, and low visual clutter when looking at the call tree.

  • IDE Perf can surface IntelliJ-specific diagnostics such as CachedValue statistics.

Example use cases

  • Use the tracer to get call counts when CPU sampling is insufficient.

  • Use the tracer to accurately measure the effect of a performance optimization.

  • Use wildcard tracing to audit a new feature and look for unexpected overhead.

  • Given a user-reported performance bug, search for repro scenarios by tracing suspect methods and then monitoring the tracing data while trying out a variety of user interactions.

Contributing

See dev-guide.md for development tips, and see CONTRIBUTING.md before submitting a pull request. If you plan to make any large-scale changes, it is a good idea to start a discussion first! If you need ideas on what to implement, check out the "future work" discussion here.

ide-perf's People

Contributors

gharrma avatar josh-127 avatar vladimirdolzhenko avatar eugen-yakovets avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.