The term "traffic offense" when used in this section shall mean any moving traffic violation described or enumerated in subdivisions A 1 and 2 of § 46.2-382, whether such violation was committed within or outside the Commonwealth according to the records of the Department of Motor Vehicles.
The term "prior traffic record" when used in this section shall mean the record of prior suspensions and revocations of a driver's license, and the record of prior convictions of traffic offenses described in the foregoing provisions of this section.
When any person is found guilty of a traffic offense, the court or jury trying the case may consider the prior traffic record of the defendant before imposing sentence as provided by law. After the prior traffic record of the defendant has been introduced, the defendant shall be afforded an opportunity to present evidence limited to showing the nature of his prior convictions, suspensions, and revocations.
Va. Code § 46.2-943