* Export necessary system variables:
# export XEND_DEBUG=1
# export XEND_DAEMONIZE=0

* Start xend tracing:
# /usr/sbin/xend trace_start

The trace file will be available at /var/log/xen/xend.trace.

* Debug xend using the Python Debugger:
# python -m pdb /usr/sbin/xend trace_start

You'll drop to a debugging shell. You can set breakpoints and continue.

* Profile xend using the Python Profiler:
# python -m profile /usr/sbin/xend start >xend.profile

To generate the profile result:
# kill -INT <pid of xend>
# kill -USR1 <pid of xend>

The profiling log is available at xend.profile.

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2021-12-22
  • 2021-05-20
  • 2021-06-15
  • 2021-11-07
  • 2022-02-01
  • 2021-12-11
  • 2022-03-06
相关资源
相似解决方案