https://github.com/Microsoft/CNTK
Raw File
Tip revision: 07fcce92f82a91b4db6ce40b048142058ff1da9f authored by Jacob DeWitt on 02 November 2017, 22:09:05 UTC
First version of C API for evaluation, taking over Jacob's branch.
Tip revision: 07fcce9
Profiler.h
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#pragma once

class Profiler
{
public:
    // Initializes profiler asking it to take given number of samples (0 to disable) and then stop
    Profiler(int numSamples);
    ~Profiler(); // stops the profiler
    // Notifies transition to the next sample
    void NextSample();

private:
    void Start();
    void Stop();

    int m_numSamples;
    bool m_isProfilingActive;
};
back to top