-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaskell-perf.cabal
More file actions
206 lines (178 loc) · 5.68 KB
/
Copy pathhaskell-perf.cabal
File metadata and controls
206 lines (178 loc) · 5.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
cabal-version: 2.2
name: haskell-perf
version: 0.1.0
synopsis: Haskell performance analysis Tool
description:
Analyze the CPU cost, heap allocations, Linux perf event counters for
Haskell threads and for user defined code windows in a Haskell thread
aware manner.
homepage: https://streamly.composewell.com
bug-reports: https://github.com/composewell/haskell-perf/issues
license: Apache-2.0
license-file: LICENSE
tested-with: GHC==9.0.1
, GHC==9.2.7
author: Composewell Technologies
maintainer: streamly@composewell.com
copyright: 2021 Composewell Technologies
category: Streamly
stability: Experimental
build-type: Simple
extra-doc-files:
Changelog.md
README.md
dev/GhcFlags.md
dev/Methods.md
dev/metrics.md
dev/ghc-work.md
docs/*.md
examples/README.md
extra-source-files:
examples/*.hs
test/snippets/*.hs
source-repository head
type: git
location: https://github.com/composewell/haskell-perf
flag dev
description: Development build
manual: True
default: False
-- flag fusion-plugin
-- description: Use fusion plugin for benchmarks and executables
-- manual: True
-- default: False
-------------------------------------------------------------------------------
-- Common stanzas
-------------------------------------------------------------------------------
common default-extensions
-- In GHC 2024
default-extensions:
BangPatterns
ConstraintKinds
DeriveDataTypeable
DeriveGeneric
DeriveTraversable
ExistentialQuantification
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
InstanceSigs
KindSignatures
LambdaCase
MultiParamTypeClasses
RankNTypes
ScopedTypeVariables
TupleSections
TypeApplications
TypeOperators
-- Not in GHC2024
default-extensions:
CPP
CApiFFI
MagicHash
PatternSynonyms
RecordWildCards
common compile-options
import: default-extensions
default-language: Haskell2010
ghc-options: -Weverything
-Wno-implicit-prelude
-Wno-missing-deriving-strategies
-Wno-missing-exported-signatures
-Wno-missing-import-lists
-Wno-missing-local-signatures
-Wno-missing-role-annotations
-Wno-missing-safe-haskell-mode
-Wno-missed-specialisations
-Wno-all-missed-specialisations
-Wno-monomorphism-restriction
-Wno-prepositive-qualified-module
-Wno-unsafe
-Rghc-timing
-Wno-missing-kind-signatures
-Wno-redundant-bang-patterns
-Wno-operator-whitespace
-Wno-incomplete-uni-patterns
if flag(dev)
ghc-options: -Wmissed-specialisations
-Wall-missed-specialisations
-fno-ignore-asserts
common optimization-options
ghc-options: -O2
-fdicts-strict
-fspec-constr-recursive=16
-fmax-worker-args=16
common lib-options
import: compile-options, optimization-options
common test-options
import: compile-options, optimization-options
ghc-options: -with-rtsopts -T
-------------------------------------------------------------------------------
-- Library
-------------------------------------------------------------------------------
library
import: lib-options
hs-source-dirs: lib
exposed-modules:
Perf.Metric.KeyValue
, Perf.Metric.Type
, Perf.Measure
, Perf.Internal.Measure.Types
, Perf.Internal.Measure.Bracket
, Perf.Sink.Console
, Perf.Sink.Console.Unbounded
, Perf.Internal.Sink
, Perf.Eventlog.Parser
, Perf.Eventlog.Aggregate
if !os(windows)
exposed-modules:
Perf.Internal.Measure.RUsage
build-depends:
base >= 4.9 && < 5
, containers < 0.9
, pretty-show >= 1.10 && < 1.11
, stm >= 2.5.3 && < 2.6
, streamly >= 0.11.0 && < 0.12
, streamly-core >= 0.3.0 && < 0.4
-------------------------------------------------------------------------------
-- Executables
-------------------------------------------------------------------------------
executable hperf
import: compile-options, optimization-options
hs-source-dirs: hperf
main-is: Main.hs
build-depends:
base >= 4.9 && < 5
, containers < 0.9
, format-numbers < 0.2
, haskell-perf
, optparse-applicative < 0.20
, streamly-core >= 0.3.0 && < 0.4
, streamly-statistics < 0.3
, text < 2.2
-------------------------------------------------------------------------------
-- Examples
-------------------------------------------------------------------------------
-- XXX Use examples flag to compile these
executable getRTSStats
import: test-options
hs-source-dirs: examples
main-is: getRTSStats.hs
ghc-options: -O2 -fmax-worker-args=16 -fspec-constr-recursive=16
build-depends:
base
, haskell-perf
, streamly-core
executable traceEventIO
import: compile-options
hs-source-dirs: examples
ghc-options: -threaded -rtsopts "-with-rtsopts=-l"
main-is: traceEventIO.hs
build-depends:
base >= 4.9 && < 5
, unix < 2.9
if os(windows)
buildable: False
-------------------------------------------------------------------------------
-- Tests
-------------------------------------------------------------------------------