mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/gui: Add some tracing
This commit is contained in:
parent
667e6e73fa
commit
e21c3a7afe
|
@ -12,6 +12,7 @@
|
|||
#include "xrt/xrt_instance.h"
|
||||
|
||||
#include "util/u_time.h"
|
||||
#include "util/u_trace_marker.h"
|
||||
|
||||
#include "gui_common.h"
|
||||
|
||||
|
@ -39,6 +40,8 @@ do_exit(struct gui_program *p, int ret)
|
|||
int
|
||||
gui_prober_init(struct gui_program *p)
|
||||
{
|
||||
XRT_TRACE_MARKER();
|
||||
|
||||
xrt_result_t xret;
|
||||
|
||||
// Initialize the prober.
|
||||
|
@ -67,6 +70,8 @@ gui_prober_init(struct gui_program *p)
|
|||
int
|
||||
gui_prober_select(struct gui_program *p)
|
||||
{
|
||||
XRT_TRACE_MARKER();
|
||||
|
||||
xrt_result_t xret = xrt_instance_create_system(p->instance, &p->xsysd, &p->xso, NULL);
|
||||
if (xret != XRT_SUCCESS) {
|
||||
return -1;
|
||||
|
@ -78,6 +83,8 @@ gui_prober_select(struct gui_program *p)
|
|||
void
|
||||
gui_prober_update(struct gui_program *p)
|
||||
{
|
||||
XRT_TRACE_MARKER();
|
||||
|
||||
if (!p->xsysd) {
|
||||
return;
|
||||
}
|
||||
|
@ -93,6 +100,8 @@ gui_prober_update(struct gui_program *p)
|
|||
void
|
||||
gui_prober_teardown(struct gui_program *p)
|
||||
{
|
||||
XRT_TRACE_MARKER();
|
||||
|
||||
xrt_space_overseer_destroy(&p->xso);
|
||||
xrt_system_devices_destroy(&p->xsysd);
|
||||
|
||||
|
|
Loading…
Reference in a new issue