Inside linebackers Reuben Foster and Fred Warner were among the many 49ers players who struggled on Sunday in a 39-10 loss to the Los Angeles Rams at Levi’s Stadium.

Foster, in particular, had a rough day. He recorded just one tackle while being responsible for three of the 49ers’ eight missed tackles, according to Pro Football Focus.

Foster, a first-round draft pick in 2017, played 51 of the team’s 61 defensive snaps. He left the game in the fourth quarter after sustaining a right shoulder injury while missing a tackle on a 12-yard touchdown pass he surrendered in coverage against Rams running back Todd Gurley.

Foster and Warner, a rookie, shared for the lowest grade among all 49ers defensive players, according to PFF. Warner was the only 49ers player to be on the field for every defensive snap.

Here are some other 49ers metrics from PFF:

-- Quarterback C.J. Beathard completed just two of nine pass attempts for 21 yards and an interception while under pressure. Has passer rating when under pressure was 0.0. He was also sacked seven times.

-- Center Weston Richburg surrendered two sacks and two hurries. Left guard Laken Tomlinson gave up to hurries.

-- Left tackle Joe Staley did not give up any quarterback pressures. In the past four games, Staley has yielded just one quarterback pressure.

-- Defensive lineman Arik Armstead played 35 snaps and recorded one sack, a hurry and two run stops.

-- Solomon Thomas played 39 snaps to tie with Earl Mitchell for the team’s second-most plays among defensive linemen (behind DeForest Buckner’s 40 snaps). Thomas had two run stops.

Here are the total numbers of snaps of every 49ers player who saw action:

Offense

Total offensive snaps: 58

Quarterback -- C.J. Beathard 58

Running back -- Kyle Juszczyk 34, Raheem Mostert 22, Alfred Morris 20, Matt Breida 5

Wide receiver -- Marquise Goodwin 55, Pierre Garçon 32, Kendrick Bourne 26, Trent Taylor 20, Richie James 3

Tight end -- George Kittle 52, Garrett Celek 20, Ross Dwelley 1

Offensive line -- Laken Tomlinson 58, Joe Staley 58, Weston Richburg 58, Mike McGlinchey 58, Mike Person 58

Defense

Total defensive snaps: 61

Defensive line -- DeForest Buckner 40, Solomon Thomas 39, Earl Mitchell 39, Cassius Marsh 35, Arik Armstead 35, Ronald Blair 29, Sheldon Day 25

Linebacker -- Fred Warner 61, Reuben Foster 51, Elijah Lee 10, Malcolm Smith 7, Mark Nzeocha 5

Defensive back -- Ahkello Witherspoon 57, Jaquiski Tartt 56, Greg Mabin 49, K’Waun Williams 48, Adrian Colbert 34, D.J. Reed 30, Tarvarius Moore 12, Antone Exum 5, Tyvis Powell 4

Special teams

Total special teams plays: 30

Lee 27, Nzeocha 27, Moore 26, Exum 20, Mostert 16, Marsh 16, Dwelley 15, James 14, Powell 14, Celek 13, Warner 13, Bradley Pinion 11, Buckner 10, Reed 10, Tartt 9, Colbert 9, Smith 9, Bourne 8, Witherspoon 8, Kyle Nelson 7, Thomas 7, Mitchell 7, Victor Bolden 5, Juszczyk 5, Mabin 5, Armstead 3, Robbie Gould 2, Garry Gilliam 2, Tomlinson 2, Staley 2, Richburg 2, McGlinchey 2, Blair 2, Foster 1, Williams 1