aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/execprofile/autostart/start.cpp
blob: 4fffb03ae1cec33194c947df00aca4cdfa1dd9da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <library/cpp/execprofile/profile.h>

namespace {
    struct TInit {
        inline TInit() {
            BeginProfiling();
        }

        inline ~TInit() {
            EndProfiling();
        }
    };

    const TInit initer;
}