Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
internal_result.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
20// $File: //depot/GeneralsMD/Staging/code/Libraries/Source/profile/internal_result.h $
21// $Author: mhoffe $
22// $Revision: #1 $
23// $DateTime: 2003/07/09 10:57:23 $
24//
25// ©2003 Electronic Arts
26//
27// Internal result functions
29#ifdef _MSC_VER
30# pragma once
31#endif
32#ifndef INTERNAL_RESULT_H // Include guard
33#define INTERNAL_RESULT_H
34
36class ProfileResultFileCSV: public ProfileResultInterface
37{
38 ProfileResultFileCSV(void) {}
39
40 void WriteThread(ProfileFuncLevel::Thread &thread);
41
42public:
43 static ProfileResultInterface *Create(int argn, const char * const *);
44 virtual const char *GetName(void) const { return "file_csv"; }
45 virtual void WriteResults(void);
46 virtual void Delete(void);
47};
48
60class ProfileResultFileDOT: public ProfileResultInterface
61{
62public:
63 enum
64 {
66 };
67
78 static ProfileResultInterface *Create(int argn, const char * const *);
79
80 virtual const char *GetName(void) const { return "file_dot"; }
81 virtual void WriteResults(void);
82 virtual void Delete(void);
83
84private:
85
86 ProfileResultFileDOT(const char *fileName, const char *frameName, int foldThreshold);
87
88 struct FoldHelper
89 {
90 FoldHelper *next;
91 const char *source;
93 unsigned numId;
94 bool mark;
95 };
96
97 char *m_fileName;
98 char *m_frameName;
99 int m_foldThreshold;
100};
101
102#endif // INTERNAL_RESULT_H
A function level profile ID.
virtual const char * GetName(void) const
static ProfileResultInterface * Create(int argn, const char *const *)
virtual void WriteResults(void)
Write out results.
virtual void Delete(void)
Destroys the current result function.
Write out DOT file for calling hierarchy.
static ProfileResultInterface * Create(int argn, const char *const *)
Creates a class instance.
virtual void WriteResults(void)
Write out results.
virtual const char * GetName(void) const
virtual void Delete(void)
Destroys the current result function.
Result function class.