Create tracing_supported() util function

This commit is contained in:
Christophe Bedard 2019-08-15 13:14:53 +02:00
parent cd4f8d5d08
commit c0b86bd4db
2 changed files with 14 additions and 2 deletions

View file

@ -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'