From 0c501d1987cb4bd01b8b55c2cdb07823f696dc65 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 4 Aug 2019 18:44:59 -0400 Subject: Add timing on loadInterface AndreasK recently mentioned that he thought that interface file loading may be a non-trivial cost. Let's measure. --- compiler/iface/LoadIface.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/iface/LoadIface.hs b/compiler/iface/LoadIface.hs index 497ddfc179..16963dcb94 100644 --- a/compiler/iface/LoadIface.hs +++ b/compiler/iface/LoadIface.hs @@ -399,7 +399,8 @@ loadInterface doc_str mod from -- Redo search for our local hole module loadInterface doc_str (mkModule (thisPackage dflags) (moduleName mod)) from | otherwise - = do { -- Read the state + = withTiming getDynFlags (text "loading interface") (pure ()) $ + do { -- Read the state (eps,hpt) <- getEpsAndHpt ; gbl_env <- getGblEnv -- cgit v1.2.1