1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
23 // Fix the stupid Visual 6 Warning
24 void foo_fe_stat_cpp() {};
26 #ifdef MEASURE_FRONTEND_TABLES
28 #include <nel/misc/debug.h>
29 #include "game_share/tick_event_handler.h"
33 using namespace NLMISC
;
39 void TEventPerSeenEntityCounterFrame::setGameTick()
41 Tick
= CTickEventHandler::getGameCycle();
48 void TEventPerSeenEntityCounterFrame::display( bool withvalue
)
50 //std::stringstream ss;
53 str
+= NLMISC::toString(Tick
);
55 for ( i
=0; i
!=250; ++i
)
57 //ss << "\t" << SeenEntities[i];
58 str
+= "\t" + NLMISC::toString(SeenEntities
[i
]);
62 //ss << "\t" << Value;
63 str
+= "\t" + NLMISC::toString(Value
);
65 InfoLog
->displayRawNL( "%s", str
.c_str() );
72 void TEventPerSeenEntityCounterFrame::displayAll( const char *name
, std::vector
<TEventPerSeenEntityCounterFrame
>& vect
, bool withvalue
)
74 InfoLog
->displayRawNL( "%s:", name
);
75 std::vector
<TEventPerSeenEntityCounterFrame
>::iterator icv
;
76 for ( icv
=vect
.begin(); icv
!=vect
.end(); ++icv
)
78 (*icv
).display( withvalue
);
83 TEventPerSeenEntityCounterFrame PropRecvrCntFrame1
, PropRecvrCntFrame2
,
89 std::vector
<TEventPerSeenEntityCounterFrame
> PropRecvrCntClt1
,