Only emit a performance trace if the rule has sources, and thus has a generating action. This fixes a bug where base ts_library aliases fail to compile with perf_trace set to true. PiperOrigin-RevId: 177300740