Skip to content

Commit 8f51f5c

Browse files
authored
Merge pull request #123 from varehus/master
fix spelling errors
2 parents d70f45e + dfb917e commit 8f51f5c

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

Events/ReadEvents.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ import Text.Printf
3535
-- import qualified GHC.RTS.Events as GHCEvents
3636
--
3737
-- The GHC.RTS.Events library returns the profile information
38-
-- in a data-streucture which contains a list data structure
38+
-- in a data-structure which contains a list data structure
3939
-- representing the events i.e. [GHCEvents.Event]
4040
-- ThreadScope transforms this list into an alternative representation
4141
-- which (for each HEC) records event *durations* which are ordered in time.
4242
-- The durations represent the run-lengths for thread execution and
43-
-- run-lengths for garbage colleciton. This data-structure is called
43+
-- run-lengths for garbage collection. This data-structure is called
4444
-- EventDuration.
4545
-- ThreadScope then transformations this data-structure into another
4646
-- data-structure which gives a binary-tree view of the event information
@@ -207,7 +207,7 @@ buildEventLog progress from =
207207
allHisto :: [(Timestamp, Int, Timestamp)]
208208
allHisto = catMaybes . sparkSummary M.empty . toList $ sparkProfile
209209

210-
-- Sparks of zero lenght are already well visualized in other graphs:
210+
-- Sparks of zero length are already well visualized in other graphs:
211211
durHistogram = filter (\ (_, logdur, _) -> logdur > 0) allHisto
212212
-- Precompute some extremums of the maximal interval, needed for scales.
213213
durs = [(logdur, dur) | (_start, logdur, dur) <- durHistogram]

Events/SparkStats.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ initial = SparkStats 0 0 0 0 0 0 0 0 0
2424
-- | Create spark stats for a duration, given absolute
2525
-- numbers of sparks in all categories at the start and end of the duration.
2626
-- The units for spark transitions (first 6 counters) is [spark/duration]:
27-
-- the fact that intervals may have different lenghts is ignored here.
27+
-- the fact that intervals may have different lengths is ignored here.
2828
-- The units for the pool stats are just [spark].
2929
-- The values in the second counter have to be greater or equal
3030
-- to the values in the first counter, except for the spark pool size.

Events/TestEvents.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ testEventTypes
119119
EventType wakeup "Wakeup thread" (Just 10),
120120
EventType startGC "Start GC" (Just 0),
121121
EventType finishGC "Finish GC" (Just 0),
122-
EventType reqSeqGC "Request sequetial GC" (Just 0),
122+
EventType reqSeqGC "Request sequential GC" (Just 0),
123123
EventType reqParGC "Reqpargc parallel GC" (Just 0),
124124
EventType createSparkThread "Create spark thread" (Just 8),
125125
EventType logMessage "Log message" Nothing,

GUI/KeyView.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ keyData =
106106
"In the spark conversion graph the coloured area represents the number " ++
107107
"of sparks that have fizzled.")
108108
, ("GCed spark", KEventAndGraph, gcColour,
109-
"As an event it indicates a spark has been GC'd, meaning it has been " ++
109+
"As an event it indicates a spark has been GCed, meaning it has been " ++
110110
"discovered that the spark's thunk was no longer needed anywhere. " ++
111111
"In the spark conversion graph the coloured area represents the number " ++
112-
"of sparks that were GC'd.")
112+
"of sparks that were GCed.")
113113
]
114114

115115

@@ -136,7 +136,7 @@ renderKeyIcon KDuration keyColour = do
136136
renderKeyIcon KEvent keyColour = renderKEvent keyColour
137137
renderKeyIcon KEventAndGraph keyColour = do
138138
renderKEvent keyColour
139-
-- An icon roughly repreenting a jagedy graph.
139+
-- An icon roughly representing a jaggedy graph.
140140
let x = fromIntegral ox
141141
y = fromIntegral hecBarHeight
142142
C.moveTo (2*x) (y - 2)

GUI/SummaryView.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ summaryViewNew builder = do
124124
[ cellText := show ovf ]
125125
addSparksColumn "Dud" $ \(_, SparkCounts _ _ _ dud _ _) ->
126126
[ cellText := show dud ]
127-
addSparksColumn "GC'd" $ \(_, SparkCounts _ _ _ _ gc _) ->
127+
addSparksColumn "GCed" $ \(_, SparkCounts _ _ _ _ gc _) ->
128128
[ cellText := show gc ]
129129
addSparksColumn "Fizzled" $ \(_, SparkCounts _ _ _ _ _ fiz) ->
130130
[ cellText := show fiz ]
@@ -714,7 +714,7 @@ accumEvent !statsAccum ev =
714714
-- For events that contain discrete increments. We assume the event
715715
-- is emitted close to the end of the process it measures,
716716
-- so we ignore the first found event, because most of the process
717-
-- could have happened before the start of the current inverval.
717+
-- could have happened before the start of the current interval.
718718
-- This is consistent with @alterCounter@. For interval beginning
719719
-- at time 0, we start with @Just 0@.
720720
alterIncrement _ Nothing = Just 0
@@ -881,7 +881,7 @@ accumEvent !statsAccum ev =
881881
}
882882
-- Cap is not in the GC. Mark it as idle to complete
883883
-- the identification of caps that take part
884-
-- in the current GC. Without overwritin the mode,
884+
-- in the current GC. Without overwriting the mode,
885885
-- the cap could be processed later on as if
886886
-- it took part in the GC, giving wrong results.
887887
ModeEnd -> dGC { gcMode = ModeIdle }
@@ -934,7 +934,7 @@ accumEvent !statsAccum ev =
934934
ModeIdle -> errorAs "scanEvents: EndGC ModeIdle"
935935
$ sd { dGCTable = IM.insert cap endedGC dGCTable }
936936
SparkCounters crt dud ovf cnv fiz gcd _rem ->
937-
-- We are guranteed the first spark counters event has all zeroes,
937+
-- We are guaranteed the first spark counters event has all zeroes,
938938
-- do we don't need to rig the counters for maximal interval.
939939
let current = RtsSpark crt dud ovf cnv fiz gcd
940940
in sd { dsparkTable =

GUI/Timeline/Sparks.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ renderSparkHistogram ViewParameters{..} hecs =
239239
drawVRulers
240240
drawHRulers
241241
-- Move to the bottom and draw the X scale. The Y scale is drawn
242-
-- independetly in another drawing area.
242+
-- independently in another drawing area.
243243
translate 0 (fromIntegral histogramHeight)
244244
drawXScale
245245
restore

0 commit comments

Comments
 (0)