mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-09 10:52:24 +00:00
Add script to invoke mercury_profile.
scripts/mprof.m, scripts/Mmake: Add script to invoke mercury_profile.
This commit is contained in:
@@ -14,7 +14,7 @@ include ../Mmake.common
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
SCRIPTS = mmake mc mod2c c2init mgnuc ml mint \
|
||||
SCRIPTS = mmake mc mod2c c2init mgnuc ml mprof mint \
|
||||
sicstus_conv mtags vpath_find mercury_update_interface
|
||||
NUPROLOG_SCRIPTS = mcn mnc mnl mnp
|
||||
SICSTUS_SCRIPTS = mcs msc msl msp
|
||||
|
||||
17
scripts/mprof.in
Normal file
17
scripts/mprof.in
Normal file
@@ -0,0 +1,17 @@
|
||||
#! /bin/sh
|
||||
# @configure_input@
|
||||
#---------------------------------------------------------------------------#
|
||||
# Copyright (C) 1995 University of Melbourne.
|
||||
# This file may only be copied under the terms of the GNU General
|
||||
# Public License - see the file COPYING in the Mercury distribution.
|
||||
#---------------------------------------------------------------------------#
|
||||
#
|
||||
# MPROF - Mercury Profiler
|
||||
#
|
||||
# Use `mprof -h' for help.
|
||||
#
|
||||
# Environment variables: MERCURY_PROFILER.
|
||||
|
||||
MPROF=${MERCURY_PROFILER="@LIBDIR@/bin/@FULLARCH@/mercury_profile"}
|
||||
|
||||
exec $MPROF -- "$@"
|
||||
Reference in New Issue
Block a user