hal.profile package

Submodules

hal.profile.mem module

Profile OS memory

hal.profile.mem.force_garbage_collect()[source]

Releases memory used

hal.profile.mem.get_memory_usage()[source]

Gets RAM memory usage

Returns:MB of memory used by this process

hal.profile.models module

Profile models

class hal.profile.models.Timer[source]

Bases: object

elapsed_time()[source]

Calculates elapsed time

Returns:seconds elapsed since start

hal.profile.performance module

Perform benchmarks and tests on your PC

class hal.profile.performance.EightQueenTest(size)[source]

Bases: object

Test CPU by solving eight-queen problem

static introduction()[source]

Welcomes user to this test sessions

Returns:intro to test
run()[source]

Runs test and safes results

run_test()[source]

Runs test

Returns:Time to solve problem with given size
start()[source]

Starts profiling

update_std_out_and_log(string)[source]

Prints to stdout and updates log

Parameters:string – Stuff to print
static welcome()[source]

Welcomes user to this test sessions

Returns:intro to test