Darknet/YOLO v3.0-137-g91d901e
Object Detection Framework
 
Loading...
Searching...
No Matches
Darknet::TimingAndTracking Class Referencefinal

The timing and tracking functionality is used to find places in the code where optimizations should be made. More...

#include "Timing.hpp"

Collaboration diagram for Darknet::TimingAndTracking:

Public Member Functions

 TimingAndTracking (const std::string &n, const bool r=false, const std::string &c="")
 
 ~TimingAndTracking ()
 

Public Attributes

std::string comment
 
std::chrono::high_resolution_clock::time_point end_time
 
std::string name
 
bool reviewed
 
std::chrono::high_resolution_clock::time_point start_time
 

Detailed Description

The timing and tracking functionality is used to find places in the code where optimizations should be made.

Since the original authors are no longer active in the Darknet/YOLO project, there is a lot of unknown code. This class is used to time each function, and the results are stored in the TimingRecords object. When Darknet exits, the results are shown in a table.

Running with this enabled will slow down Darknet! By a significant amount. It is not meant to be used by "normal" users, but instead by developers. When building Darknet, you have to give it an extra parameter when you run the cmake command. For example:

cd build
cmake -DENABLE_TIMING_AND_TRACKING=ON -DCMAKE_BUILD_TYPE=Debug ..

Note that "Debug" is not needed for this functionality. It will work just the same in "Release" mode.

Constructor & Destructor Documentation

◆ TimingAndTracking()

Darknet::TimingAndTracking::TimingAndTracking ( const std::string &  n,
const bool  r = false,
const std::string &  c = "" 
)

◆ ~TimingAndTracking()

Darknet::TimingAndTracking::~TimingAndTracking ( )

Member Data Documentation

◆ comment

std::string Darknet::TimingAndTracking::comment

◆ end_time

std::chrono::high_resolution_clock::time_point Darknet::TimingAndTracking::end_time

◆ name

std::string Darknet::TimingAndTracking::name

◆ reviewed

bool Darknet::TimingAndTracking::reviewed

◆ start_time

std::chrono::high_resolution_clock::time_point Darknet::TimingAndTracking::start_time

The documentation for this class was generated from the following files: