Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 391 Bytes

File metadata and controls

21 lines (16 loc) · 391 Bytes

Profiling

It measures in a simple way the time it takes for a block of code to execute, or the memory it consumes.

using (Profiling.Time("Some slow code"))
{
    ...
}

Output the message: "Task 'Some slow code' took 27.66ms (0 frames)"

using (Profiling.Memory("Some hungry code"))
{
    ...
}

Output the message: "Task 'Some hungry code' consume 4.00 kb".