我正在测量备份对 CPU 的性能影响。我想捕获所有备份操作和 CPU 使用情况。我正在运行每周完整备份、每日差异和 15 分钟日志备份。扩展事件中是否有任何选项可以用来捕获 CPU 使用率?
CREATE EVENT SESSION [Backup_Events_Trace] ON SERVER ADD EVENT sqlserver.backup_restore_progress_trace (ACTION(sqlserver.client_hostname, sqlserver.database_name))
,ADD EVENT sqlserver.databases_backup_restore_throughput (ACTION(sqlserver.client_hostname, sqlserver.database_name)) ADD TARGET package0.event_file (SET filename = N'L:\XE\Backup_Events_Trace.xel')
WITH (STARTUP_STATE = OFF)
GO