@@ -265,9 +265,9 @@ Profile with real-time sampling statistics::
265265
266266 Sample all threads in the process instead of just the main thread
267267
268- .. option :: --no- native
268+ .. option :: --native
269269
270- Don't include artificial ``<native> `` frames to denote calls to non-Python code.
270+ Include artificial ``<native> `` frames to denote calls to non-Python code.
271271
272272.. option :: --no-gc
273273
@@ -357,7 +357,7 @@ This section documents the programmatic interface for the :mod:`!profiling.sampl
357357For command-line usage, see :ref: `sampling-profiler-cli `. For conceptual information
358358about statistical profiling, see :ref: `statistical-profiling `
359359
360- .. function :: sample(pid, *, sort=2, sample_interval_usec=100, duration_sec=10, filename=None, all_threads=False, limit=None, show_summary=True, output_format="pstats", realtime_stats=False, native=True , gc=True)
360+ .. function :: sample(pid, *, sort=2, sample_interval_usec=100, duration_sec=10, filename=None, all_threads=False, limit=None, show_summary=True, output_format="pstats", realtime_stats=False, native=False , gc=True)
361361
362362 Sample a Python process and generate profiling data.
363363
@@ -375,7 +375,7 @@ about statistical profiling, see :ref:`statistical-profiling`
375375 :param bool show_summary: Whether to show summary statistics (default: True)
376376 :param str output_format: Output format - 'pstats' or 'collapsed' (default: 'pstats')
377377 :param bool realtime_stats: Whether to display real-time statistics (default: False)
378- :param bool native: Whether to include ``<native> `` frames (default: True )
378+ :param bool native: Whether to include ``<native> `` frames (default: False )
379379 :param bool gc: Whether to include ``<GC> `` frames (default: True)
380380
381381 :raises ValueError: If output_format is not 'pstats' or 'collapsed'
0 commit comments