Revision e71879001d05e5d4b12d47b02a87e598e21e5b10 authored by Vadim Mazalov on 01 June 2016, 19:26:12 UTC, committed by Vadim Mazalov on 02 June 2016, 16:42:44 UTC
1 parent 7f9d345
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;
};
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...