select * from sys.dm_os_performance_counters
where counter_name in ('Log Flushes/sec'
,'Log Bytes Flushed/sec'
,'Log Flush Waits/sec'
,'Log Flush Wait Time')
and instance_name = '<dbname>';
This is a performance counter, you will need to calculate the actual value from the raw value. For the Log Timeout Counter counter, which is of type 65792 (that is, NumberOfItems64 ), it’s simple: the raw value is the value. But others are of type 272696576 (i.e. RateOfCountsPerSecond64 ), for which the value is calculated by dividing the delta or two consecutive raw values by the number of seconds elapsed between gluing the samples.
easieer, Perfmon.exec .