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
config_get(key : String, default : String = "") : String
Get a configuration value
config_set(key : String, value)
Set a configuration value
finalize
Shutdown and cleanup
initialize
Initialize the CogUtil subsystem
randbool
Convenience functions for global access
randdouble(min : Float64, max : Float64) : Float64
randdouble(max : Float64) : Float64
randdouble
randfloat(min : Float64, max : Float64) : Float64
randfloat(max : Float64) : Float64
randfloat
randint(min : Int32, max : Int32) : Int32
randint(max : Int32) : Int32
randnormal(mean : Float64 = 0.0, stddev : Float64 = 1.0) : Float64
timestamp
Get current timestamp as string
to_string(value) : String
Convert value to string (utility method)
Macros
log_with_source(level, message)
Macro for easy source location in logs
oc_assert(condition, message = "Assertion failed")
OpenCog assertion macro - similar to oc_assert
Nested types
- CogUtil::AssertionException
- CogUtil::AtomMemoryPool
- CogUtil::CognitiveCache(K, V)
- CogUtil::ComboException
- CogUtil::Config
- CogUtil::IOException
- CogUtil::InvalidParamException
- CogUtil::LogLevel
- CogUtil::Logger
- CogUtil::Memory
- CogUtil::MemoryProfiler
- CogUtil::OpenCogException
- CogUtil::OptimizationEngine
- CogUtil::PerformanceMonitor
- CogUtil::PerformanceProfiler
- CogUtil::PerformanceRegression
- CogUtil::Platform
- CogUtil::ProfiledMethod
- CogUtil::ProfilingCLI
- CogUtil::RandGen
- CogUtil::RuntimeException
- CogUtil::SIMDOptimizations
- CogUtil::StandardException
- CogUtil::StringUtil
- CogUtil::Timer