Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Kirill Smelkov
cpython
Commits
43f1b8d6
Commit
43f1b8d6
authored
Jan 24, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added optional interface for dynamic execution profile (to be gathered
in ceval.c).
parent
b3f515af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Python/sysmodule.c
Python/sysmodule.c
+11
-2
No files found.
Python/sysmodule.c
View file @
43f1b8d6
...
...
@@ -194,21 +194,30 @@ sys_getcounts(self, args)
extern
PyObject
*
_Py_GetObjects
Py_PROTO
((
PyObject
*
,
PyObject
*
));
#endif
#ifdef DYNAMIC_EXECUTION_PROFILE
/* Defined in ceval.c because it uses static globals if that file */
extern
PyObject
*
_Py_GetDXProfile
Py_PROTO
((
PyObject
*
,
PyObject
*
));
#endif
static
struct
methodlist
sys_methods
[]
=
{
/* Might as well keep this in alphabetic order */
{
"exit"
,
sys_exit
,
0
},
{
"getrefcount"
,
sys_getrefcount
,
0
},
#ifdef COUNT_ALLOCS
{
"getcounts"
,
sys_getcounts
,
0
},
#endif
#ifdef DYNAMIC_EXECUTION_PROFILE
{
"getdxp"
,
_Py_GetDXProfile
,
1
},
#endif
#ifdef Py_TRACE_REFS
{
"getobjects"
,
_Py_GetObjects
,
1
},
#endif
{
"getrefcount"
,
sys_getrefcount
,
0
},
#ifdef USE_MALLOPT
{
"mdebug"
,
sys_mdebug
,
0
},
#endif
{
"setcheckinterval"
,
sys_setcheckinterval
,
1
},
{
"setprofile"
,
sys_setprofile
,
0
},
{
"settrace"
,
sys_settrace
,
0
},
{
"setcheckinterval"
,
sys_setcheckinterval
,
1
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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