Coder Social home page Coder Social logo

hs-profile's Introduction

Overview

This mode profiles on every save the current haskell buffer.

Results will be displayed directly as overlays in the buffer.

https://imgur.com/5NFlGWf.png

Usage

Put this file into your load path and put in your .emacs (require ‘hs-profile). Run hs-profile-run to make a one time profile or run hs-profile-mode to automatically reprofile on every save.

Profiling is done asynchronously, so don’t worry about blocking emacs.

Dependencies

It requires

  • visual-prof from hackage
  • GNU R (for plots)

Furthermore, used modules must be installed with profiling enabled.

Shortcomings

At least for now, only executable work which don’t need any command line argument. Processes won’t get killed, so if you write something which takes a lot time to run, it will run until it terminates or you kill it. For retrieving profiling data, your code must be executed, so be aware when you use this with code which operates a lot with IO.

Contribution

You’re warmly encouraged to report issues, feature requests and style improvements. I’m learning and enjoy to hear any hint on making stuff better.

hs-profile's People

Contributors

knupfer avatar

Stargazers

 avatar

Watchers

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