معرفی شرکت ها


cygtrace-0.0.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

gcc instrumentation based tracer for c/c++/pybind11
ویژگی مقدار
سیستم عامل -
نام فایل cygtrace-0.0.1
نام cygtrace
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Yunfeng Lin
ایمیل نویسنده linyunfeng@sjtu.edu.cn
آدرس صفحه اصلی https://github.com/CreeperLin/cygtrace
آدرس اینترنتی https://pypi.org/project/cygtrace/
مجوز -
# cygtrace gcc instrumentation based tracer for c/c++/pybind11 ## Installation Requirements: - gcc - cmake - python3 with pybind11 (optional) ### Python package ```bash pip install . ``` ### System-wise library To build/install the library: ```bash mkdir build cd build cmake .. make sudo make install # to install the library in /usr/local/lib ``` To build the examples: ```bash cd examples mkdir build cd build cmake .. make ``` ## Usage ### With Python script Run program/script/command with tracer ```bash cygtrace ./path/to/executable cygtrace python3 ./path/to/script.py ``` Demangle json trace file ```bash cygtrace -d -f trace.json ``` Get compiling parameters (gcc) ```bash gcc example.c $(cygtrace -I -L -p) ``` When compiling dynamically loaded libraries (e.g., pybind11), add -m flag (disables libcygtrace linking) ```bash g++ example.cpp $(cygtrace -I -L -p -m) ``` ### Manual instructions To enable tracing in pybind11 code, add these to the compiler args (gcc): ```bash -finstrument-functions -Wl,--export-dynamic ``` for c/cpp programs, also link the cygtrace library: ```bash -finstrument-functions -Wl,--export-dynamic -lcygtrace ``` To enable tracing in python (pybind11), start the python interpreter like this (assuming library installed in /usr/local/lib): ```bash LD_PRELOAD=/usr/local/lib/libcygtrace.so python3 xxx.py ``` ## Notes - To view JSON-formatted profiling results, go to ```chrome://tracing``` or [Perfetto UI](https://ui.perfetto.dev/) - the names of functions with ```static``` keyword or within anonymous namespace are unobtainable in the tracer (appear as "\<unknown\>") ## Troubleshooting - CMake could not find pybind11 ```bash pip3 install "pybind11[global]" ``` - "error while loading shared libraries: libcygtrace.so: cannot open shared object file: No such file or directory" ```bash export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ```


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl cygtrace-0.0.1:

    pip install cygtrace-0.0.1.whl


نصب پکیج tar.gz cygtrace-0.0.1:

    pip install cygtrace-0.0.1.tar.gz