48 lines
1.6 KiB
Plaintext
Executable File
48 lines
1.6 KiB
Plaintext
Executable File
// Filename: winStatsMonitor.I
|
|
// Created by: drose (09Jan04)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
|
|
//
|
|
// All use of this software is subject to the terms of the Panda 3d
|
|
// Software license. You should have received a copy of this license
|
|
// along with this source code; you will also find a current copy of
|
|
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
|
|
//
|
|
// To contact the maintainers of this program write to
|
|
// panda3d-general@lists.sourceforge.net .
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: WinStatsMonitor::MenuDef::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
WinStatsMonitor::MenuDef::
|
|
MenuDef(int thread_index, int collector_index, bool show_level) :
|
|
_thread_index(thread_index),
|
|
_collector_index(collector_index),
|
|
_show_level(show_level)
|
|
{
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: WinStatsMonitor::MenuDef::operator <
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
bool WinStatsMonitor::MenuDef::
|
|
operator < (const MenuDef &other) const {
|
|
if (_thread_index != other._thread_index) {
|
|
return _thread_index < other._thread_index;
|
|
}
|
|
if (_collector_index != other._collector_index) {
|
|
return _collector_index < other._collector_index;
|
|
}
|
|
return (int)_show_level < (int)other._show_level;
|
|
}
|