Coder Social home page Coder Social logo

pulse_otp's Introduction

pulse_otp

pulse_otp provides slightly modified copies of Erlang OTP components. These components are meant to be instrumented by the PULSE tool. This is by no means a complete set of OTP modules, we have only added modules that we have needed while testing other applications.

Included modules

Currently the following modules are provided:

  • pulse_gen_server
  • pulse_supervisor
  • pulse_application
  • pulse_gen
  • pulse_proc_lib
  • pulse_application_master
  • pulse_application_controller
  • pulse_application_starter

Installation

In order to compile the modules with PULSE you need Quviq QuickCheck. There is an Emakefile in the /ebin directory that compiles the modules.

Installation is optional, you just need to make sure that the beam-files can be found by the code loader.

Usage

The usage of these modules are fairly straight forward. One uses the pulse_replace_module funtionality of PULSE. For example:

-compile({pulse_replace_module, [{gen_server, pulse_gen_server}]}).

Will replace all calls to gen_server by a corresponding call to pulse_gen_server.

One should note however that using pulse_application in parallel with the normal application modules is a little bit subtle. Applications usually depend on other applications, for example many applications require that the stdlib application is running. However, we do normally not want to start a separate (instrumented) version of stdlib. Therefore, pulse_application will also look in the normal application for running applications. Also, since the application management is normally started by the init process we have made some additions to start pulse_application automatically as soon as it is needed.

Technical notes

The modules are from Erlang R15B, but in order to compile also on R14 some callback-specs have been commented out.

Other changes to the original modules include:

  • renaming atoms (xxxx to pulse_xxxx)
  • renaminge ETS table names
  • the above mentioned changes in pulse_application

pulse_otp's People

Contributors

hanssv avatar thomasarts avatar

Watchers

 avatar  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.