Services to gather information on the performance of events by categories

Provides PerfMap to manage all the categories and PerfEntry for per-category statistics.

for i in 100.times do
    var clock = new Clock

    # Do some "work" here
    nanosleep(0, 1000000)

    # Register the perf
    sys.perfs["sleep 1ms"].add clock.lapse

    # Do some other "work" here
    nanosleep(0, 5000000)

    # Register the perf
    sys.perfs["sleep 5ms"].add clock.lapse
end

assert sys.perfs["sleep 1ms"].count == 100
assert sys.perfs["sleep 1ms"].avg.is_approx(0.001, 0.001)
assert sys.perfs["sleep 5ms"].avg.is_approx(0.005, 0.005)

All groups and modules

module performance_analysis

performance_analysis :: performance_analysis

Services to gather information on the performance of events by categories
package_diagram performance_analysis performance_analysis realtime realtime performance_analysis->realtime core core realtime->core ...core ... ...core->core gamnit gamnit gamnit->performance_analysis nitcorn nitcorn nitcorn->performance_analysis android android android->gamnit android... ... android...->android github github github->nitcorn popcorn popcorn popcorn->nitcorn github... ... github...->github popcorn... ... popcorn...->popcorn

Ancestors

package core

core

Nit common library of core classes and methods

Parents

package realtime

realtime

Services to keep time of the wall clock time

Children

package gamnit

gamnit

Portable game and multimedia framework for Nit
package nitcorn

nitcorn

Lightweight framework for Web applications development

Descendants

package android

android

Android platform support and APIs
package app

app

app.nit, a framework for portable applications
package egl

egl

Interface between rendering APIs (OpenGL, OpenGL ES, etc.) and the native windowing system.
package github

github

Nit wrapper for Github API
package glesv2

glesv2

OpenGL graphics rendering library for embedded systems, version 2.0
package ios

ios

iOS support for app.nit
package linux

linux

Implementation of app.nit for the Linux platform
package popcorn

popcorn

Popcorn