Skip to content

Commit cb47f83

Browse files
committed
wip
1 parent d38f8f0 commit cb47f83

File tree

6 files changed

+54
-28
lines changed

6 files changed

+54
-28
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ stack.yaml.lock
4848
*.dyn_hi
4949
*.chi
5050
*.chs.h
51-
*.prof
5251
.liquid/
5352

5453
# Agda

nix/project.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let
2222
}];
2323
ghc96-plugin = {
2424
ghcOverride = pkgs.haskell-nix.compiler.ghc967.override {
25-
extraFlavourTransformers = [ "+profiled_ghc+no_dynamic_ghc" ];
25+
extraFlavourTransformers = [ "perf+profiled_ghc+debug_info+no_dynamic_ghc" ];
2626
ghc-patches = [ ./profiled-ghc-964.patch ];
2727
};
2828
modules = [{

plutus-profiled-plugin-test/app/Main.hs

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
ghc \
2+
-package-env=- \
3+
--make \
4+
-fbuilding-cabal-package \
5+
-O \
6+
-prof \
7+
-fprof-auto-exported \
8+
-osuf \
9+
p_o \
10+
-hisuf \
11+
p_hi \
12+
-outputdir \
13+
/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build \
14+
-odir \
15+
/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build \
16+
-hidir \
17+
/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build \
18+
-hiedir \
19+
/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build/extra-compilation-artifacts/hie \
20+
-stubdir \
21+
/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build \
22+
-i \
23+
-isrc \
24+
-i/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build \
25+
-i/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build/autogen \
26+
-i/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build/global-autogen \
27+
-I/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build/autogen \
28+
-I/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build/global-autogen \
29+
-I/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build \
30+
-optP-include \
31+
-optP/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/build/autogen/cabal_macros.h \
32+
-this-unit-id \
33+
plutus-profiled-plugin-test-0.1.0.0-inplace \
34+
-hide-all-packages \
35+
-Wmissing-home-modules \
36+
-no-user-package-db \
37+
-package-db \
38+
/Users/zeme/.cabal/store/ghc-9.6.7/package.db \
39+
-package-db \
40+
/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/packagedb/ghc-9.6.7 \
41+
-package-db \
42+
/Volumes/Repos/plutus/worktrees/profiled-ghc/dist-newstyle/build/x86_64-osx/ghc-9.6.7/plutus-profiled-plugin-test-0.1.0.0/package.conf.inplace \
43+
-package-id \
44+
base-4.18.3.0 \
45+
-package-id \
46+
ghc-9.6.7 \
47+
-XHaskell2010 \
48+
SimplePlugin \
49+
-hide-all-packages \
50+
-DXXX \
51+
+RTS -pj -hc -I0.4444 -RTS

plutus-profiled-plugin-test/plutus-profiled-plugin-test.cabal

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,3 @@ library
1313
, ghc
1414

1515
default-language: Haskell2010
16-
17-
executable simple-plugin-test
18-
main-is: Main.hs
19-
hs-source-dirs: app
20-
ghc-options: -threaded -rtsopts -with-rtsopts=-N
21-
build-depends:
22-
, base >=4.9 && <5
23-
, plutus-profiled-plugin-test
24-
25-
default-language: Haskell2010

plutus-profiled-plugin-test/src/SimplePlugin.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ plugin =
1111
let getBool = do
1212
liftIO $ threadDelay 1000000
1313
return True
14+
1415
b <-
15-
{-# SCC "XXXXXXXXXXXXXX" #-}
16+
{-# SCC "XXXXxXXXXXXXXXX" #-}
1617
getBool
1718
putMsgS ("I got a bool from the plugin -> " ++ show b)
1819
pure todos

0 commit comments

Comments
 (0)