I have a trace table which looks like this

I’d like to get a running total which looks like the following output – its very important that I retain the order – as this is the execution order of the stored porcedures – It will help me analyze bottle necks in the system

I have tried
select max(RowNumber),objectname, count(1) from rob
where eventclass = 42
group by objectname
But that mucks up the order
Is this even possible in SQL?
UPDATE:
I tried this
select RowNumber,objectname, count(1) from rob
where eventclass = 42
group by objectname,RowNumber
order by RowNumber
But this (as the query quite rightly says groups by rownumber (have to have that to have it in the order by) )
Working sample using a table variable.
Result: