![]() |
|
|
00001 /*************************************************************************** 00002 * inspectorJ - java profiler * 00003 * Copyright (C) 2007 by James May 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00027 #ifndef INSPECTORJ_AGENT_COMMANDSET_BYTECODECMDSET_H 00028 #define INSPECTORJ_AGENT_COMMANDSET_BYTECODECMDSET_H 00029 00030 #include "inspectorj/agent/commandset/referencetypecmdset.h" 00031 00032 namespace inspectorj { 00033 namespace agent { 00034 namespace commandset { 00035 00042 class BytecodeCmdSet : public ReferenceTypeCmdSet 00043 { 00044 public: 00045 BytecodeCmdSet(JavaVM *vm, JNIEnv *env, jvmtiEnv *jvmti); 00046 ~BytecodeCmdSet(); 00047 virtual void process(JDWPCommand* cmd, boost::function< void (JDWPReply*) > cbk); 00048 00049 private: 00050 static const QString failureMsg; 00051 void disassembleBytecodes(JDWPCommand*, boost::function< void (JDWPReply*) >); 00052 jvmtiError getSourceFileName(jclass&, QString&); 00053 00054 }; 00055 00056 } // end namespace commandset 00057 } // end namespace agent 00058 } // end namespace inspectorj 00059 00060 #endif // INSPECTORJ_AGENT_COMMANDSET_BYTECODECMDSET_H