Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
a54e06e8
Commit
a54e06e8
authored
Jun 18, 2015
by
Chris Toshok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a timer for the active lifetime of an unwind session, and a number of unwind sessions
parent
21ccf4c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/codegen/unwinding.cpp
src/codegen/unwinding.cpp
+9
-1
No files found.
src/codegen/unwinding.cpp
View file @
a54e06e8
...
...
@@ -479,11 +479,12 @@ class PythonUnwindSession : public Box {
ExcInfo
exc_info
;
bool
skip
;
bool
is_active
;
Timer
t
;
public:
DEFAULT_CLASS_SIMPLE
(
unwind_session_cls
);
PythonUnwindSession
()
:
exc_info
(
NULL
,
NULL
,
NULL
),
skip
(
false
),
is_active
(
false
)
{}
PythonUnwindSession
()
:
exc_info
(
NULL
,
NULL
,
NULL
),
skip
(
false
),
is_active
(
false
)
,
t
(
/*min_usec=*/
10000
)
{}
ExcInfo
*
getExcInfoStorage
()
{
RELEASE_ASSERT
(
is_active
,
""
);
...
...
@@ -498,10 +499,17 @@ public:
exc_info
=
ExcInfo
(
NULL
,
NULL
,
NULL
);
skip
=
false
;
is_active
=
true
;
t
.
restart
();
static
StatCounter
stat
(
"unwind_sessions"
);
stat
.
log
();
}
void
end
()
{
RELEASE_ASSERT
(
is_active
,
""
);
is_active
=
false
;
static
StatCounter
stat
(
"us_unwind_session"
);
stat
.
log
(
t
.
end
());
}
void
addTraceback
(
const
LineInfo
&
line_info
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment