Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
8d5bf65c
Commit
8d5bf65c
authored
24 years ago
by
Keith Wansbrough
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-07-05 15:42:19 by keithw]
Add -t flag to specify title of report.
parent
dfedfb02
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
glafp-utils/nofib-analyse/CmdLine.hs
+8
-0
8 additions, 0 deletions
glafp-utils/nofib-analyse/CmdLine.hs
glafp-utils/nofib-analyse/Main.hs
+7
-4
7 additions, 4 deletions
glafp-utils/nofib-analyse/Main.hs
with
15 additions
and
4 deletions
glafp-utils/nofib-analyse/CmdLine.hs
+
8
−
0
View file @
8d5bf65c
...
...
@@ -25,12 +25,18 @@ tooquick_threshold
devs
=
OptDeviations
`
elem
`
flags
nodevs
=
OptNoDeviations
`
elem
`
flags
default_title
=
"NoFib Results"
reportTitle
=
case
[
t
|
OptTitle
t
<-
flags
]
of
[]
->
default_title
(
t
:
_
)
->
t
data
CLIFlags
=
OptASCIIOutput
|
OptHTMLOutput
|
OptIgnoreSmallTimes
Float
|
OptDeviations
|
OptNoDeviations
|
OptTitle
String
|
OptHelp
deriving
Eq
...
...
@@ -48,5 +54,7 @@ argInfo =
"Display deviations (default)"
,
Option
[
'n'
]
[
"nodeviations"
]
(
NoArg
OptNoDeviations
)
"Hide deviations"
,
Option
[
't'
]
[
"title"
]
(
ReqArg
OptTitle
"title"
)
"Specify report title"
]
This diff is collapsed.
Click to expand it.
glafp-utils/nofib-analyse/Main.hs
+
7
−
4
View file @
8d5bf65c
-----------------------------------------------------------------------------
-- $Id: Main.hs,v 1.
3
2000/0
3
/0
2
1
1:39:45
keithw Exp $
-- $Id: Main.hs,v 1.
4
2000/0
7
/0
5
1
5:42:19
keithw Exp $
-- (c) Simon Marlow 1997-1999
-----------------------------------------------------------------------------
...
...
@@ -113,8 +113,9 @@ time_ok t = t > tooquick_threshold
-- HTML page generation
htmlPage
results
args
=
header
[]
(
theTitle
[]
(
htmlStr
"NoFib Results"
))
=
header
[]
(
theTitle
[]
(
htmlStr
reportTitle
))
+++
bar
[]
+++
h1
[]
(
htmlStr
reportTitle
)
+++
gen_menu
+++
bar
[]
+++
body
[]
(
gen_tables
results
args
)
...
...
@@ -131,7 +132,7 @@ gen_tables results args =
+++
foldr1
(
+++
)
(
map
(
htmlGenModTable
results
args
)
per_module_result_tab
)
htmlGenProgTable
results
args
(
SpecP
title
anc
get_result
get_status
result_ok
)
=
sectHeading
title
anc
=
sectHeading
title
anc
+++
font
[
size
1
]
(
mkTable
(
htmlShowResults
results
args
get_result
get_status
result_ok
))
+++
bar
[]
...
...
@@ -279,7 +280,9 @@ hexDig i | i > 10 = chr (i-10 + ord 'a')
-- ASCII page generation
asciiPage
results
args
=
(
interleave
"
\n\n
"
(
map
(
asciiGenProgTable
results
args
)
per_prog_result_tab
)
(
str
reportTitle
.
str
"
\n\n
"
.
interleave
"
\n\n
"
(
map
(
asciiGenProgTable
results
args
)
per_prog_result_tab
)
.
str
"
\n
"
.
interleave
"
\n\n
"
(
map
(
asciiGenModTable
results
args
)
per_module_result_tab
)
)
"
\n
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment