module

CogUtil

Comprehensive performance profiling command-line interface Provides easy access to all profiling and optimization tools

Constants

VERSION = "0.1.0"

Class methods

config

Global configuration access methods

Source
config_get(key : String, default : String = "") : String

Get a configuration value

Source
config_set(key : String, value)

Set a configuration value

Source
finalize

Shutdown and cleanup

Source
initialize

Initialize the CogUtil subsystem

Source
randbool

Convenience functions for global access

Source
randdouble(min : Float64, max : Float64) : Float64
Source
randdouble(max : Float64) : Float64
Source
randdouble
Source
randfloat(min : Float64, max : Float64) : Float64
Source
randfloat(max : Float64) : Float64
Source
randfloat
Source
randint(min : Int32, max : Int32) : Int32
Source
randint(max : Int32) : Int32
Source
randnormal(mean : Float64 = 0.0, stddev : Float64 = 1.0) : Float64
Source
timestamp

Get current timestamp as string

Source
to_string(value) : String

Convert value to string (utility method)

Source

Macros

log_with_source(level, message)

Macro for easy source location in logs

Source
oc_assert(condition, message = "Assertion failed")

OpenCog assertion macro - similar to oc_assert

Source

Nested types