File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed
Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 1- import os
21from pathlib import Path
3- import sys
2+ import subprocess
43from typing import Callable
54
65from ddtrace import config
@@ -31,23 +30,15 @@ def add_tag(key: str, value: str) -> None:
3130
3231def start () -> bool :
3332 if not is_available :
34- native_dir = Path (__file__ ).parent .parent / "native"
35- for f in native_dir .iterdir ():
36- if f .is_file ():
37- print (f .name )
38-
39- # also print the contents of the profiling directory
40- # ddtrace/internal/datadog/profiling
33+ print (failure_msg )
34+ # Let's check whether crashtracker.so is pointing to the right _native.so
35+ # using ldd
4136 crashtracker_dir = Path (__file__ ).parent .parent / "datadog" / "profiling" / "crashtracker"
4237 for f in crashtracker_dir .iterdir ():
43- if f .is_file ():
44- print (f .name )
45-
46- print (failure_msg )
47- for k , v in os .environ .items ():
48- print (k , v )
49- print (sys .version )
50-
38+ if f .is_file () and f .name .endswith (".so" ):
39+ subprocess .run (["ldd" , f .name ], cwd = crashtracker_dir , check = True )
40+ # i'd also want to know when it was created
41+ print (f .stat ().st_ctime )
5142 return False
5243
5344 import platform
You can’t perform that action at this time.
0 commit comments