Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/ProfileViewer.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* SaveToFile: Save the current profiler data (for all profile tables) | * SaveToFile: Save the current profiler data (for all profile tables) | ||||
* to a file in the 'logs' directory. | * to a file in the 'logs' directory. | ||||
*/ | */ | ||||
void SaveToFile(); | void SaveToFile(); | ||||
/** | /** | ||||
* SaveToJS: Return a script value containing the current profiler data | |||||
* (for all profile tables). | |||||
*/ | |||||
JS::Value SaveToJS(const ScriptInterface& scriptInterface); | |||||
/** | |||||
* ShowTable: Set the named profile table to be the displayed one. If it | * ShowTable: Set the named profile table to be the displayed one. If it | ||||
* is not found, no profile is displayed. | * is not found, no profile is displayed. | ||||
* | * | ||||
* @param table The table name (matching AbstractProfileTable::GetName), | * @param table The table name (matching AbstractProfileTable::GetName), | ||||
* or the empty string to display no table. | * or the empty string to display no table. | ||||
*/ | */ | ||||
void ShowTable(const CStr& table); | void ShowTable(const CStr& table); | ||||
private: | private: | ||||
CProfileViewerInternals* m; | CProfileViewerInternals* m; | ||||
}; | }; | ||||
#define g_ProfileViewer CProfileViewer::GetSingleton() | #define g_ProfileViewer CProfileViewer::GetSingleton() | ||||
#endif | #endif |
Wildfire Games · Phabricator