mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +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 "xrt/xrt_instance.h"
|
||||||
|
|
||||||
#include "util/u_time.h"
|
#include "util/u_time.h"
|
||||||
|
#include "util/u_trace_marker.h"
|
||||||
|
|
||||||
#include "gui_common.h"
|
#include "gui_common.h"
|
||||||
|
|
||||||
|
@ -39,6 +40,8 @@ do_exit(struct gui_program *p, int ret)
|
||||||
int
|
int
|
||||||
gui_prober_init(struct gui_program *p)
|
gui_prober_init(struct gui_program *p)
|
||||||
{
|
{
|
||||||
|
XRT_TRACE_MARKER();
|
||||||
|
|
||||||
xrt_result_t xret;
|
xrt_result_t xret;
|
||||||
|
|
||||||
// Initialize the prober.
|
// Initialize the prober.
|
||||||
|
@ -67,6 +70,8 @@ gui_prober_init(struct gui_program *p)
|
||||||
int
|
int
|
||||||
gui_prober_select(struct gui_program *p)
|
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);
|
xrt_result_t xret = xrt_instance_create_system(p->instance, &p->xsysd, &p->xso, NULL);
|
||||||
if (xret != XRT_SUCCESS) {
|
if (xret != XRT_SUCCESS) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -78,6 +83,8 @@ gui_prober_select(struct gui_program *p)
|
||||||
void
|
void
|
||||||
gui_prober_update(struct gui_program *p)
|
gui_prober_update(struct gui_program *p)
|
||||||
{
|
{
|
||||||
|
XRT_TRACE_MARKER();
|
||||||
|
|
||||||
if (!p->xsysd) {
|
if (!p->xsysd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -93,6 +100,8 @@ gui_prober_update(struct gui_program *p)
|
||||||
void
|
void
|
||||||
gui_prober_teardown(struct gui_program *p)
|
gui_prober_teardown(struct gui_program *p)
|
||||||
{
|
{
|
||||||
|
XRT_TRACE_MARKER();
|
||||||
|
|
||||||
xrt_space_overseer_destroy(&p->xso);
|
xrt_space_overseer_destroy(&p->xso);
|
||||||
xrt_system_devices_destroy(&p->xsysd);
|
xrt_system_devices_destroy(&p->xsysd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue