haskell - Profiling library via executable in cabal -


मूर्ख प्रश्न मेरे पास एक पुस्तकालय और निष्पादन योग्य के साथ एक कैबल फ़ाइल है जिसे मैं पुस्तकालय प्रोफ़ाइल में उपयोग करना चाहूंगा, लेकिन मैं अपने पुस्तकालय से लागत केंद्रों को देखने के लिए प्रबंधन नहीं कर सकता ( हालांकि मैं कुछ मॉड्यूल जैसे GHC.IO.Encoding ) से देखता हूं।

यहां मेरे कैबल फ़ाइल का एक सरलीकृत संस्करण है

  flag dev default : झूठा मैनुअल: सच लाइब्रेरी उजागर-मॉड्यूल: फू जीएससी-ऑप्शंस: -वॉल सीजीसी-प्रॉफ ऑप्शनः -फाफा-ऑटो बिल्ड-निर्भर करता है: बेस एक्जिक्युटेबल डीव-उदाहरण यदि! फ्लैग (देव) बनाया जा सकता है: गलत जीएससी-विकल्प: - Ddump-to-file -ddump-simpl -dsuppress-module-prefixes -dsuppress-uniques -ddump-core-stats -addump-inlinings ghc- विकल्प: -O2 -rtsopts ghc-prof-options: -fprof-auto hs-source -dirs: dev-example, ./ main-is: main.hs build-depend: आधार  

कहां से मैं कर रहा हूं

  $ cabal कॉन्फ़िगर करें -fdev -w /usr/local/bin/ghc-7.6.3 --सक्षम-लायब्रेरी-प्रोफाइलिंग -सक्षम-निष्पादन योग्य- $ caba एल रन देव-उदाहरण - + आरटीएस -एच-पी  

उह, समस्या बस यह था कि मेरे लाइब्रेरी कोड को इनलाइन किया गया था (या कम से कम चिह्नित inlineable )।


Comments

Popular posts from this blog

javascript - How to use the code plugin with popcornjs -

Apache Redirect Performance - .htaccess vs Apache configuration file ? -