_opcprof.c

foundationI_fluffos_v1/lib/cmds/adm/_opcprof.c · 510 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

#include <std.h>


inherit DAEMON;

int
cmd_opcprof(string arg)
{
   if(!adminp(previous_object())) return 0;
#ifdef HAS_OPCPROF
	opcprof(LOG_DIR + "/dumps/opcprof");
#else
	message("my_action","Sorry, driver has been compiled with OPC_PROF disabled",this_player());
#endif
	return 1;
}

int help()
{
  write( @EndText
Syntax: opcprof
Effect: Puts a list of efuns and eoperators in /log/dumps/opcprof
See man: opcprof
See also: fdinfo, netstat, mstatus, cache, callouts, dumpallobj,
EndText
  );
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571