mirror of
https://github.com/opencv/opencv.git
synced 2026-07-26 22:03:04 +04:00
trace: initial support for code trace
This commit is contained in:
@@ -47,14 +47,17 @@ namespace cv
|
||||
|
||||
Algorithm::Algorithm()
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
}
|
||||
|
||||
Algorithm::~Algorithm()
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
}
|
||||
|
||||
void Algorithm::save(const String& filename) const
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
FileStorage fs(filename, FileStorage::WRITE);
|
||||
fs << getDefaultName() << "{";
|
||||
write(fs);
|
||||
@@ -63,11 +66,13 @@ void Algorithm::save(const String& filename) const
|
||||
|
||||
String Algorithm::getDefaultName() const
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
return String("my_object");
|
||||
}
|
||||
|
||||
void Algorithm::writeFormat(FileStorage& fs) const
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
fs << "format" << (int)3;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user