Create tracing_supported() util function
This commit is contained in:
parent
cd4f8d5d08
commit
c0b86bd4db
2 changed files with 14 additions and 2 deletions
|
@ -11,3 +11,15 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""Module for tracing."""
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def tracing_supported() -> bool:
|
||||
"""
|
||||
Check if tracing is supported on this platform.
|
||||
It does not mean a tracer is installed.
|
||||
"""
|
||||
return sys.platform == 'linux'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue