How can I listen the events of module/class defined

In my project, I need to listen the events of module/class defined
when load a file with ::Kernel::load, but I can't find the API for my
ideal, only the "set_trace_func" method was be found, but I could not
resolve the module/class instance when receive the event.