• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

haskell/ThreadScope: A graphical tool for profiling parallel Haskell programs

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

haskell/ThreadScope

开源软件地址(OpenSource Url):

https://github.com/haskell/ThreadScope

开源编程语言(OpenSource Language):

Haskell 75.5%

开源软件介绍(OpenSource Introduction):

ThreadScope

Hackage Hackage-Deps CI

Using pre-built binaries

Currently pre-built binaries for the following platforms are provided:

  • Ubuntu 18.04 (64-bit)
  • macOS 10.15
  • Windows Server 2019 (x64)

GTK+2 needs to be installed for these binaries to work.

On Windows, the MSYS2 is the recommended way to install GTK+2. In MSYS2 MINGW64 shell:

pacman -S $MINGW_PACKAGE_PREFIX-gtk2

then you can run the threadscope binary from the shell.

Building from source

Use git clone or cabal get threadscope to get the source and move into the threadscope directory.

Linux

GTK+2 is required to be installed. On Ubuntu-like systems:

sudo apt install libgtk2.0-dev

Then you can build threadscope using cabal:

cabal v2-build   # to only build the project, or
cabal v2-install # to build and install the binary

Or using stack:

stack build   # to only build the project, or
stack install # to build and install the binary

macOS

GTK+ is required:

brew install gtk+

Then you can build threadscope using cabal:

cabal --project-file=cabal.project.osx v2-build   # to only build the project, or
cabal --project-file=cabal.project.osx v2-install # to build and install the binary

Or using stack:

stack --stack-yaml=stack.osx.yaml build   # to only build the project, or
stack --stack-yaml=stack.osx.yaml install # to install the binary

Windows

Chocolatey can be used to install GHC and MSYS2 is the recommended way to install GTK+.

choco install ghc
refreshenv
set PATH=C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;%PATH%
pacman -Sy mingw-w64-x86_64-gtk2

then you can build threadscope using cabal:

cabal v2-build

Or you can use stack instead.

CAVEAT: gtk2 needs to be installed twice: one for stack's MSYS2 environment and another for local MSYS2 environment.

In command prompt:

stack setup
stack exec -- pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime msys2-runtime-devel
stack exec -- pacman -Syu
stack exec -- pacman -Syuu
stack exec -- pacman -S base-devel mingw-w64-x86_64-pkg-config mingw-w64-x86_64-toolchain mingw-w64-x86_64-gtk2
stack install

Then in MSYS2 MINGW64 shell:

pacman -S $MINGW_PACKAGE_PREFIX-gtk2
echo 'export PATH=$APPDATA/local/bin:$PATH' >> .profile
source .profile
threadscope

Building using stack is not tested in CI. If you find any issues with building with stack, please update the instructions and send a PR.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
jgm/pandoc: Universal markup converter发布时间:2022-06-24
下一篇:
oxij/haskell-course-ru发布时间:2022-06-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap