# Copyright (c) 2023, NVIDIA CORPORATION.  All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.

import omni.ext
from omni.kit.window.preferences import register_page, unregister_page
from .execution_debug_page import ExecutionDebugPage


class ExecutionDebugExtension(omni.ext.IExt):
    # The entry point for this extension (generates a page within the Preferences
    # tab with debugging flags for the Execution Framework).

    def on_startup(self):
        self.execution_debug_page = ExecutionDebugPage()
        register_page(self.execution_debug_page)

    def on_shutdown(self):
        unregister_page(self.execution_debug_page)
