@Override
	public void execute(MapleClient c, MessageCallback mc, String[] splitted) {
		if (splitted[0].equals("startProfiling")) {
			CPUSampler sampler = CPUSampler.getInstance();
			sampler.addIncluded("net.sf.odinms");
			sampler.start();
		} else if (splitted[0].equals("stopProfiling")) {
			CPUSampler sampler = CPUSampler.getInstance();
			try {
				String filename = "odinprofile.txt";
				if (splitted.length > 1) {
					filename = splitted[1];
				}
				File file = new File(filename);
				if (file.exists()) {
					mc.dropMessage("The entered filename already exists, choose a different one");
					return;
				}
				sampler.stop();
				FileWriter fw = new FileWriter(file);
				sampler.save(fw, 1, 10);
				fw.close();
			} catch (IOException e) {
				log.error("THROW", e);
			}
			sampler.reset();
		}
	}