Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
utils
Commits
b086927f
Commit
b086927f
authored
22 years ago
by
Mark Woolrich
Browse files
Options
Downloads
Patches
Plain Diff
Checked in prior to CVS conversion
parent
7f020e59
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
time_tracer.h
+12
-3
12 additions, 3 deletions
time_tracer.h
tracer_plus.h
+6
-0
6 additions, 0 deletions
tracer_plus.h
with
18 additions
and
3 deletions
time_tracer.h
+
12
−
3
View file @
b086927f
...
@@ -82,9 +82,18 @@ namespace Utilities{
...
@@ -82,9 +82,18 @@ namespace Utilities{
class
Time_Tracer
class
Time_Tracer
{
{
public:
public:
Time_Tracer
(
const
char
*
str
)
{
construct
(
str
);
}
Time_Tracer
(
char
*
str
)
Time_Tracer
(
char
*
str
)
{
{
construct
(
str
);
}
void
construct
(
const
char
*
str
)
{
if
(
instantstack
||
runningstack
)
if
(
instantstack
||
runningstack
)
{
{
stk
.
push
(
string
(
str
));
stk
.
push
(
string
(
str
));
...
@@ -117,7 +126,7 @@ namespace Utilities{
...
@@ -117,7 +126,7 @@ namespace Utilities{
timingFunction
->
start
();
timingFunction
->
start
();
}
}
}
}
virtual
~
Time_Tracer
()
virtual
~
Time_Tracer
()
{
{
if
(
instantstack
)
if
(
instantstack
)
...
...
This diff is collapsed.
Click to expand it.
tracer_plus.h
+
6
−
0
View file @
b086927f
...
@@ -26,6 +26,12 @@ namespace Utilities {
...
@@ -26,6 +26,12 @@ namespace Utilities {
class
Tracer_Plus
:
public
Tracer
,
public
Time_Tracer
class
Tracer_Plus
:
public
Tracer
,
public
Time_Tracer
{
{
public:
public:
Tracer_Plus
(
const
char
*
str
)
:
Tracer
(
const_cast
<
char
*>
(
str
)),
Time_Tracer
(
str
)
{
}
Tracer_Plus
(
char
*
str
)
:
Tracer_Plus
(
char
*
str
)
:
Tracer
(
str
),
Tracer
(
str
),
Time_Tracer
(
str
)
Time_Tracer
(
str
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment