Coder Social home page Coder Social logo

doytsujin / augury-labs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rangle/augury-labs

0.0 1.0 0.0 1.96 MB

Experimental Angular developer tools

Home Page: https://augury.rangle.io

License: MIT License

TypeScript 46.95% JavaScript 1.72% CSS 45.39% HTML 5.94%

augury-labs's Introduction

Augury Labs

Augury Labs is a project that provides developers with experimental tools and an instrumentation framework used to profile, inspect and troubleshoot Angular applications.

CircleCI PRs Welcome GitHub License Slack Status lerna

Angular Performance Profiler

About

Augury Labs is a new instrumentation & inspection framework for Angular applications that allows for easy installation of specialized developer tools. We have recently released the Performance Profiler Plugin, which can help you tune the performance of your applications by providing insights into the following:

  • Details of Angular change detection & instability periods
  • When zone.js tasks occur and what triggered them
  • Component tree details for each instability period (structure, added, removed, etc.)
  • When and how long change detection took with a breakdown for individual components
  • A detailed timeline to illustrate and explore correlations

After installing and configuring the npm packages, you can run your app while augury-labs collects raw data about the runtime characteristics of your application. This raw data is then processed into more meaningful information that you can explore to gain valuable insights into your applications runtime behaviour.

In the spirit of the Augury DevTool Extension we set out to help Angular developers better understand how their applications are running and provide insights into how they can make them better. Augury labs is a culmination of these idea and distrubted as a set of npm packages & plugin system. We hope you find it useful!

For more information about how this works, please read the architecture guide.

NOTE: This tool is still experimental. Feedback is greatly appreciated ๐Ÿ˜„

Packages

  • @augury/core - The main package responsible for collecting raw data and communicating with registered plugins. Also contains the core bootstrap procedure that injects the instrumentation code into your application.
  • @augury/performance-profiler-plugin - Opens a popup window dashboard, displaying the execution of your app as a timeline graph, showing the interaction between Zone.js tasks, Angular's stability cycles & change detection.

Installation

To setup augury-labs in your application you have two alternatives.

NOTE: The following assumes your application is a standard Angular CLI setup.

Using the Angular CLI ng add command will install the correct dependencies, perform the necessary configuration and execute initialization code.

ng add @augury/schematics

DISCLAIMER: This assumes your application are using the Angular Devkit 6+

To setup and install Augury manually, follow the manual installation.

Guides

Examples

Other Experiments

Here are some other unpublished experimental plugins:

  • Unit Tester - Proof of concept which allows programmatic access to @augury/core to be used in e2e tests. This could be used to check for acceptable thresholds of runtime behaviour in specific areas of your application.

Have other ideas? See our CONTRIBUTING guide.

Troubleshooting

If your having trouble running augury-labs, please submit a GitHub Issue.

Known Issues

  • Lazy loaded modules cannot currently be instrumented due to how augury-labs wraps the Angular boostrap process. See GitHub Issue.

  • Large component trees can cause some performance issues. We are looking into ways to mitigate this. You can use the start & pause recording buttons on the specific areas you would like to profile. This will help reduce the performance impact to shorter profiling periods.

  • Because the bootstrap code in this main.augury.ts file is different from Angular's bootstrap code you may need to tell the Angular CLI builder where is the main module of your application, adding a "entryModule": "./app/app.module#AppModule" to the "angularCompilerOptions" object of your application's tsconfig.json file. Replace the path and name of the module if you changed it from the defaults.

Contributing

We'd love to have your helping hand on augury-labs! See CONTRIBUTING.md for more information on what we're looking for and how to get started.

License

Augury Labs is open source software licensed as MIT.

augury-labs's People

Contributors

santiago-elustondo avatar andrewthauer avatar mascarenhas avatar egervari avatar feeloor avatar stevenkampen avatar

Watchers

 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.