aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/job_profiler.h
blob: 65328713803fb5071ad30f37f1139a80f4a38faa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include <memory>

namespace NYT {

////////////////////////////////////////////////////////////////////////////////

struct IJobProfiler
{
    virtual ~IJobProfiler() = default;

    //! Starts job profiling if corresponding options are set
    //! in environment.
    virtual void Start() = 0;

    //! Stops profiling and sends profile to job proxy.
    virtual void Stop() = 0;
};

////////////////////////////////////////////////////////////////////////////////

std::unique_ptr<IJobProfiler> CreateJobProfiler();

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT