File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -633,6 +633,7 @@ data HeapProfBreakdown
633
633
| HeapProfBreakdownBiography
634
634
| HeapProfBreakdownClosureType
635
635
| HeapProfBreakdownInfoTable
636
+ | HeapProfBreakdownEra
636
637
deriving Show
637
638
638
639
instance Binary HeapProfBreakdown where
@@ -647,6 +648,7 @@ instance Binary HeapProfBreakdown where
647
648
6 -> return HeapProfBreakdownBiography
648
649
7 -> return HeapProfBreakdownClosureType
649
650
8 -> return HeapProfBreakdownInfoTable
651
+ 9 -> return HeapProfBreakdownEra
650
652
_ -> fail $ " Unknown HeapProfBreakdown: " ++ show n
651
653
put breakdown = put $ case breakdown of
652
654
HeapProfBreakdownCostCentre -> (1 :: Word32 )
@@ -657,6 +659,9 @@ instance Binary HeapProfBreakdown where
657
659
HeapProfBreakdownBiography -> 6
658
660
HeapProfBreakdownClosureType -> 7
659
661
HeapProfBreakdownInfoTable -> 8
662
+ HeapProfBreakdownEra -> 9
663
+
664
+
660
665
661
666
newtype HeapProfFlags = HeapProfFlags Word8
662
667
deriving (Show , Binary )
Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ replaceUnprintableWith
538
538
:: Char -- ^ Replacement character
539
539
-> B. ByteString -- ^ Binary message which may contain unprintable bytes
540
540
-> T. Text
541
- replaceUnprintableWith replacement = T. map replace . TE. decodeUtf8With (\ _ _ -> Just replacement)
541
+ replaceUnprintableWith replacement = T. map replace . TE. decodeUtf8With (\ _ _ -> Just replacement)
542
542
where
543
543
replace c
544
544
| isPrint c = c
@@ -592,6 +592,7 @@ showHeapProfBreakdown breakdown = case breakdown of
592
592
HeapProfBreakdownBiography -> " biography"
593
593
HeapProfBreakdownClosureType -> " closure type"
594
594
HeapProfBreakdownInfoTable -> " info table"
595
+ HeapProfBreakdownEra -> " era"
595
596
596
597
-- | How to format event timestamps
597
598
data TimeFormat = RawTime | PrettyTime
You can’t perform that action at this time.
0 commit comments