mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
The Delete() methods have been deleted from the following classes: - Adaptor2d_Curve2d - Adaptor3d_Curve - Adaptor3d_Surface - AppBlend_Approx - AppCont_Function - AppParCurves_MultiCurve - AppParCurves_MultiPoint - ApproxInt_SvSurfaces - BRepPrim_OneAxis - BRepSweep_NumLinearRegularSweep - BRepSweep_Translation - BRepSweep_Trsf - DBC_BaseArray - GeomFill_Profiler - HatchGen_PointOnHatching - math_BFGS - math_FunctionSet - math_FunctionSetRoot - math_FunctionWithDerivative - math_MultipleVarFunction - math_MultipleVarFunctionWithHessian - math_MultipleVarFunctionWithGradient - math_Powell - math_NewtonMinimum - math_NewtonFunctionSetRoot - math_BissecNewton (just add virtual destructor) - math_FRPR - math_BrentMinimum (just add virtual destructor) - OSD_Chronometer - ProjLib_Projector Virtual methods Delete() or Destroy() of the transient inheritors is not changed (-> separate issue). Classes Graphic3d_DataStructureManager and PrsMgr_Presentation without changes.
111 lines
4.2 KiB
Plaintext
111 lines
4.2 KiB
Plaintext
-- Created on: 2018-03-15
|
|
-- Created by: Stephan GARNAUD (ARM)
|
|
-- Copyright (c) 1998-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
-- Updated: J.P. TIRAULT August 1993
|
|
-- All methods are static methods.
|
|
-- the "Show" method returns the consumed CPU time in a Real
|
|
-- variable.
|
|
-- J.P. TIRAULT October 15 1994
|
|
-- We measure both user and system cpu time.
|
|
class Chronometer from OSD
|
|
|
|
---Purpose: This class measures CPU time (both user and system) consumed
|
|
-- by current process or thread. The chronometer can be started
|
|
-- and stopped multiple times, and measures cumulative time.
|
|
--
|
|
-- If only the thread is measured, calls to Stop() and Show()
|
|
-- must occur from the same thread where Start() was called
|
|
-- (unless chronometer is stopped); otherwise measurement will
|
|
-- yield false values.
|
|
|
|
is
|
|
|
|
Create (ThisThreadOnly: Boolean = Standard_False) returns Chronometer from OSD;
|
|
---Purpose: Initializes a stopped Chronometer.
|
|
--
|
|
-- If ThisThreadOnly is True, measured CPU time will account
|
|
-- time of the current thread only; otherwise CPU of the
|
|
-- process (all threads, and completed children) is measured.
|
|
--
|
|
---Level: Public
|
|
|
|
---C++ : alias " Standard_EXPORT virtual ~OSD_Chronometer();"
|
|
|
|
Reset (me : in out) is virtual;
|
|
---Purpose: Stops and Reinitializes the Chronometer.
|
|
---Level: Public
|
|
|
|
Stop (me : in out) is virtual;
|
|
---Purpose: Stops the Chronometer.
|
|
---Level: Public
|
|
|
|
Start (me : in out) is virtual;
|
|
---Purpose: Starts (after Create or Reset) or restarts (after Stop)
|
|
-- the chronometer.
|
|
---Level: Public
|
|
|
|
Show (me) is virtual;
|
|
---Purpose: Shows the current CPU user and system time on the
|
|
-- standard output stream <cout>.
|
|
-- The chronometer can be running (laps Time) or stopped.
|
|
---Level: Public
|
|
|
|
Show (me; os : in out OStream from Standard) is virtual;
|
|
---Purpose: Shows the current CPU user and system time on the output
|
|
-- stream <os>.
|
|
-- The chronometer can be running (laps Time) or stopped.
|
|
---Level: Public
|
|
|
|
Show (me; theUserSeconds : in out Real from Standard);
|
|
---Purpose: Returns the current CPU user time in a variable.
|
|
-- The chronometer can be running (laps Time) or stopped.
|
|
---Level: Public
|
|
|
|
Show (me; theUserSeconds : in out Real from Standard;
|
|
theSystemSeconds : in out Real from Standard);
|
|
---Purpose: Returns the current CPU user and system time in variables.
|
|
-- The chronometer can be running (laps Time) or stopped.
|
|
---Level: Public
|
|
|
|
GetProcessCPU (myclass; UserSeconds : out Real from Standard;
|
|
SystemSeconds : out Real from Standard);
|
|
---Purpose: Returns CPU time (user and system) consumed by the current
|
|
-- process since its start, in seconds. The actual precision of
|
|
-- the measurement depends on granularity provided by the system,
|
|
-- and is platform-specific.
|
|
---Level: Public
|
|
|
|
GetThreadCPU (myclass; UserSeconds : out Real from Standard;
|
|
SystemSeconds : out Real from Standard);
|
|
---Purpose: Returns CPU time (user and system) consumed by the current
|
|
-- thread since its start. Note that this measurement is
|
|
-- platform-specific, as threads are implemented and managed
|
|
-- differently on different platforms and CPUs.
|
|
---Level: Advanced
|
|
|
|
fields
|
|
|
|
Stopped : Boolean is protected;
|
|
ThreadOnly : Boolean;
|
|
Start_user : Real;
|
|
Start_sys : Real;
|
|
Cumul_user : Real;
|
|
Cumul_sys : Real;
|
|
|
|
end;
|
|
|
|
|