Giter VIP home page Giter VIP logo

nprof's Introduction

NProf

Very basic profiler, supports drawing using either Raylib-nelua or tico-nelua. Inspired by JProf

Dependencies

There is no external dependencies unless when drawing is enabled, which will use an drawing implementation specified by NPROF.draw_impl, which must be either "raylib" or "tico"; the external dependency is the specified implementation:

Compile-time options:

  • PROF: to use nprof, you must define PROF with -D PROF option.
  • NPROF:
    • use_colors: false by default; when false, WHITE color is used to draw elements, otherwise it'll use different colors.
    • scale: {x=1, y=24} by default; for y axis, the element's rectangle height is defined as scale.y; for x axis, an element's rectangle width is defined as the absolute of the scale.x when negative, otherwise, when positive, is defined as the screen width * scale.x.
    • draw_list: true by default; it will draw a list on upper-left corner when true.
    • draw_rects: true by default; it will draw stack of rects on the bottom of screen when true.
    • draw_impl: false by default; it must be either "raylib" or "tico", it specifies what drawing implementation should be used.
  • TEST: runs a basic test, only useful for nprof development.

NOTE: When both NPROF.draw_list and NPROF.draw_rects are false, no drawing implementation is required

How to use

Check the Rotor raylib example

Preview:
nprof-gif-preview

nprof's People

Contributors

andre-la avatar edubart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nprof's Issues

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.