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
feb7edc1
Commit
feb7edc1
authored
Sep 09, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dummy dtrace probes are a good place to use inline functions
parent
48c7d751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
Include/pydtrace.h
Include/pydtrace.h
+19
-19
No files found.
Include/pydtrace.h
View file @
feb7edc1
...
...
@@ -22,25 +22,25 @@
/* Without DTrace, compile to nothing. */
#define PyDTrace_LINE(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_FUNCTION_ENTRY(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_FUNCTION_RETURN(arg0, arg1, arg2) do ; while (0)
#define PyDTrace_GC_START(arg0) do ; while (0)
#define PyDTrace_GC_DONE(arg0) do ; while (0)
#define PyDTrace_INSTANCE_NEW_START(arg0) do ; while (0)
#define PyDTrace_INSTANCE_NEW_DONE(arg0) do ; while (0)
#define PyDTrace_INSTANCE_DELETE_START(arg0) do ; while (0)
#define PyDTrace_INSTANCE_DELETE_DONE(arg0) do ; while (0)
#define PyDTrace_LINE_ENABLED() (0)
#define PyDTrace_FUNCTION_ENTRY_ENABLED() (0)
#define PyDTrace_FUNCTION_RETURN_ENABLED() (0)
#define PyDTrace_GC_START_ENABLED() (0)
#define PyDTrace_GC_DONE_ENABLED() (0)
#define PyDTrace_INSTANCE_NEW_START_ENABLED() (0)
#define PyDTrace_INSTANCE_NEW_DONE_ENABLED() (0)
#define PyDTrace_INSTANCE_DELETE_START_ENABLED() (0)
#define PyDTrace_INSTANCE_DELETE_DONE_ENABLED() (0)
inline
void
PyDTrace_LINE
(
const
char
*
arg0
,
const
char
*
arg1
,
int
arg2
)
{}
inline
void
PyDTrace_FUNCTION_ENTRY
(
const
char
*
arg0
,
const
char
*
arg1
,
int
arg2
)
{}
inline
void
PyDTrace_FUNCTION_RETURN
(
const
char
*
arg0
,
const
char
*
arg1
,
int
arg2
)
{}
inline
void
PyDTrace_GC_START
(
int
arg0
)
{}
inline
void
PyDTrace_GC_DONE
(
int
arg0
)
{}
inline
void
PyDTrace_INSTANCE_NEW_START
(
int
arg0
)
{}
inline
void
PyDTrace_INSTANCE_NEW_DONE
(
int
arg0
)
{}
inline
void
PyDTrace_INSTANCE_DELETE_START
(
int
arg0
)
{}
inline
void
PyDTrace_INSTANCE_DELETE_DONE
(
int
arg0
)
{}
inline
int
PyDTrace_LINE_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_FUNCTION_ENTRY_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_FUNCTION_RETURN_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_GC_START_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_GC_DONE_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_INSTANCE_NEW_START_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_INSTANCE_NEW_DONE_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_INSTANCE_DELETE_START_ENABLED
(
void
)
{
return
0
;
}
inline
int
PyDTrace_INSTANCE_DELETE_DONE_ENABLED
(
void
)
{
return
0
;
}
#endif
/* !WITH_DTRACE */
...
...
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