hs-speedscope 0.1.0.0 → 0.1.1.0
raw patch · 3 files changed
+7/−2 lines, 3 filesdep ~ghc-eventsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ghc-events
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- hs-speedscope.cabal +1/−1
- src/HsSpeedscope.hs +2/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for hs-speedscope +## 0.1.1 -- 2019-11-07++* Relax eventlog version check to allow 8.9+ ## 0.1 -- 2019-10-29 * Initial release
hs-speedscope.cabal view
@@ -4,7 +4,7 @@ -- http://haskell.org/cabal/users-guide/ name: hs-speedscope-version: 0.1.0.0+version: 0.1.1.0 synopsis: Convert an eventlog into the speedscope json format description: Convert an eventlog into the speedscope json format. The interactive visualisation displays an approximate trace of the program and summary views akin to .prof files.
src/HsSpeedscope.hs view
@@ -31,7 +31,7 @@ convertToSpeedscope :: EventLog -> Value convertToSpeedscope (EventLog _h (Data es)) = case el_version of- Just (ghc_version, _) | ghc_version <= makeVersion [8,9,0] ->+ Just (ghc_version, _) | ghc_version < makeVersion [8,9,0] -> error ("Eventlog is from ghc-" ++ showVersion ghc_version ++ " hs-speedscope only works with GHC 8.10 or later") _ -> object [ "version" .= ("0.0.1" :: String) , "$schema" .= ("https://www.speedscope.app/file-format-schema.json" :: String)@@ -46,6 +46,7 @@ foldr processEvents initEL es initEL = EL Nothing Nothing Nothing [] []+ version_string :: String version_string = "hs-speedscope@" ++ showVersion Paths.version