This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # Author: Douglas Creager <dcreager@dcreager.net> | |
| # This file is placed into the public domain. | |
| # Calculates the current version number. If possible, this is the | |
| # output of “git describe”, modified to conform to the versioning | |
| # scheme that setuptools uses. If “git describe” returns an error | |
| # (most likely because we're in an unpacked copy of a release tarball, | |
| # rather than in a git working copy), then we fall back on reading the | |
| # contents of the RELEASE-VERSION file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <map> | |
| #include <algorithm> | |
| #include <functional> | |
| #include <memory> | |
| using namespace std; | |
| class EventArgs { | |
| public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Basic instrumentation profiler by Cherno | |
| // Usage: include this header file somewhere in your code (eg. precompiled header), and then use like: | |
| // | |
| // Instrumentor::Get().BeginSession("Session Name"); // Begin session | |
| // { | |
| // InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling | |
| // // Code | |
| // } |