Roseanne Barr (Evan Agostini/AP)

The Viacom-owned cable network said Monday that it would tape a roast of Roseanne Barr on Aug. 4 in Los Angeles, to premiere on the cable network Aug. 12.

Pamela Anderson was roasted on 2005, and Joan Rivers got it in 2009. Anderson’s roast did well, ratings-wise; River’s roast, not so much.

To Barr falls the dubious honor of following the Charlie Sheen roast — the most-watched in Comedy Central roast history.

Last September, 29 million people watched as CBS introduced Ashton Kutcher as Sheen’s replacement on the sitcom that once earned him $2 million per episode — “Two and a Half Men’s” biggest audience ever, and the biggest season-debut crowd for any scripted program on any network since 2005.

Following that, Comedy Central’s Sheen roast rode CBS’s coattails and snared 6.4 million viewers. That edged out the previous record-holder: the Jeff Foxworthy roast of 2005 (6.2 million). Comedy Central was particularly happy that more than half the throng was made up of 18- to 34-year-olds — the network’s target audience.