1
0
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:
Alexander Alekhin
2017-05-25 18:59:01 +03:00
parent 07aff8e85f
commit 006966e629
58 changed files with 2963 additions and 185 deletions
+5
View File
@@ -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;
}