Hi i want to know trace of a method call

Hi,
My name is Rajesh
I want to know stack trace of a method call that is if one method is invoked from another method i want to know from which method that is going to invoke just consider this situation
void m1()
m();
void m2()
m();
void m()
/*here i want to know which method has invoked this m() either m1() or m2()*/
If there is any api to find this trace..........
Thank you

Thank u
This is that program
class Trace
     static void m()
          StackTraceElement s[]=Thread.currentThread().getStackTrace();
          System.out.println(s[s.length-2].getMethodName());
     static void m1()
     m();
     static void m2()
     m();
     public static void main(String[] args)
     //m1();
     m2();     
}

Similar Messages

  • I want to know what's the conference call in community level and how to use it

    i want to know what's the conference call in community level and how to use it

    Welcome to Apple Support Communities
    Conference calls are got when you reach level 4. Sometimes, ASC hosts may do a conference call about something related to Apple Support Communities. You will be notified through mail or through the "Using Apple Support Communities" forum.
    The last community calls were only for level 6 and higher users, so it's possible that you don't get invited to any until you reach level 6

  • Open Directory Active Directory users want to know Is there a method?

    Help
    Open Directory Active Directory users want to know Is there a method?
    Or can I make the Active Directory users to share on the Open Directory.
    My goal is to use our school Mac computers with SSO

    If I understand your question correctly, using Active Directory with OSX, there are a few ways this can be accomplished.
    One way is by joining each Mac directly to Active Directory. This doesn't take advantage of the additional managed preference available to OSX, but does allow AD users to authenticate on OSX. On each machine, one would open System Preferences > Accounts > Login Options > Click Join next to Network Account Server. Follow the prompts and provide the domain name of your Active Directory deployment to join the system.
    Another method is to follow the steps above, but only after extending the Active Directory Schema to support the OSX-specific managed preferences. It's a mostly harmless operation and means that you'll have a single administration interface for both OSX and Windows systems. The AD Schema information is available from Apple Support, but may also be readily available on the Internet.
    Because our Windows team preferred to not change our AD schema any more than we already had, we used a different method. We created an Open Directory Master on one of our OSX servers, then we joined it as a member server to Active Directory. Next, we join all of our OSX workstations and laptops as members to the Open Directory domain instead of to Active Directory.  This way, SSO still works.  New user accounts are added to Active Directory and all managed preferences for OSX can be managed through the native OSX Workgroup Manager tool.
    I think there are some instructions in the User Management PDF (Mac OS X Server, User Management, Version 10.6 Snow Leopard) or in the Advanced Server Admin PDF (Mac OS X Server, Advanced Server Administration, Version 10.6 Snow Leopard) but not completely certain. This page might have the docs.

  • I have iphone 4 i want to know can i do video calling in 3g

    I have iphone 4 i want to know can i do video calling in 3g

    Some video calling services such as Skype will work over 3G, assuming your carrier allows it; not all do.
    Regards.

  • Want to know location, address & name of caller. No. 8119933774.

    Dear All Friends,
    For your kind information, i intend to inform you that, from few days a person are being disturbed to my sister as a result our family are being faced huge trouble. No. 8119933774 from which he called but when we are calling back to this cell it appears
    that it is not valid or unreachable. we think he is being called from internet through software.
    So therefore, i would request all of you that please arrange such a way so that we can easily trace this nos. with proper information of disturbing person as we registered a FIR complain in LOCAL POLICE STATION and also they are trying to find it.
    Thaks & Regard,
    Panna Debnath, State : Tripura, District : West Tripura, City : Agartala, Pin : 799001 & Cell : 9774652295.

    Hi,
    Try with Table T499S.
    Regards,
    Prabu

  • Skype question- want to know what set up to use

    Bottom Line is My Company wants to know how
     I can make calls to different area codes but let the receiver see them as a local number where they live.  I will mostly being calling out.  Trying to find out what package or best way to go to accomplish this.  My company greeting is the same for all area codes so I don't think I need different account for different numbers.
    What is needed to accomplish this?
    My PC doesn't have a mic.  Do I need one?  
    Do I have to call through the computer like a phone?
    Can All Incoming calls be set to forward to my Landline?
    Is the process going to be that I need a mic to talk to them using the computer by choosing the area code number to call from the list.  
    How is it possible to use your phone to call out using different numbers?
    I read something about verifying a company.  Doesn't seem very user friendly, maybe it would be once you start, but very frustrating that you can't actually speak to someone on the phone.  
    I have been reading up but it seems like I can find answers but not in reference to my whole scenario..
    If you use a mic can you work on the computer and talk at the same time?
    Thanks So much, sorry I don't get it.  

    The only information I can give you is that given at the bottom of this page:
    http://www.apple.com/itunes/podcasts/creatorfaq.html

  • How to print a method trace to a file (first method called to the end)

    I have a tomcat war that I am deploying. I want to use some command line parameter or some tool that will show me a method trace of each method that gets executed.
    There is some static initializer in the code that starts everything in the war (the war is not a web app) but simply a process that runs in the background that does stuff.
    I want to find out what the first method called in the war is and to locate the static initializer. Having a method trace would do this because this method would be printed out first.
    After the static initializer gets called I want to see a method trace of all methods called. Having this printed to a file like Class:Method(params) would be nice.
    Even better would be some sort of tool that I could open a trace file with and see method calls in the order they were called.
    I tried several Java profiling tools but none of them show me the order (first to last) of the methods called. All I need is to see a method trace from beginning to end.
    Any help would be appreciated.

    JProbe provided almost everything I needed to see a method call trace. The method graph feature was great.
    I have a single static class with a static initializer that runs in a loop but did not know what the class name was (I inherited some code and was told about the static initializer).
    So when I fired it up in JProbe it showed me the class running off the root thread. In fact I found another static initializer that was unknown to me and another oddity as well.
    The only problem is that the method call graph is collapsed and you need to click [+] to expand every method call.
    I am told by JProbe support that there was an "expand all" option in JProbe 7.0 but it is not there in 7.1.
    Not sure why they took the time, money and energy to take a needed feature out.
    It would be great to have something that did the same thing from the command line or to be able to print a method call trace out to a file but not sure how to do this.

  • My Ipad got stolen and i want to know how do i Trace/Track it

    My Ipad got stolen and i want to know how do i Trace/Track it.

    This has nothing to do with iPhones or iPhones in the Enterprise.  In the future, please post to the appropriate forum.
    Unless "Find My iDevice" was enabled on the device prior to it being lost,  there is no way to track it.

  • Want to know the number of lines executed in my code

    Hi,
        I want to know the total number of lines of code executed by Flex in my application which includes the code generated while converting mxml to .as .Like for example with help of Trace class.

    Hi,
    Please go through following links which i am providing :
    1) http://www.adobe.com/devnet/flash-builder/articles/ascode-coverage.html
    2) http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD
    3) http://opensource.adobe.com/wiki/display/flexpmd/FlexMetrics
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • HT4061 I want to know my imei no

    I want to know my IEMI Number of my I phone 4S 32 GB its has been theft.
    Please help
    Piyush jain
    <Personal Information Edited by Host>

    Hey,
    Sorry to hear that DO NOT post your details here. Simply call the Network that you are on, also you need to contact if you have any insurance on it. Hopefully you can trace it using the Find my phone App.
    I hope this helps you. Let me know if it does. If not feel free to give me a shout. Best of luck.

  • Want to know the tables of a particualr transaction code

    Hi,
    whatz the technique of knowing the tables of a particular transaction code.
    I have got a tcode - va01.
    Want to know the tables of this transaction code.
    How...?

    Hi,
    If you want know about transaction code table details
    1. Enter Tcode 'ST05' (SQL Trace on), You can find how many tables are involved in the tcode
    2. Goto SE93, enter VA01 and find the program name, Go to object browse (se80) and enter program name and find out how many tables are invloved (Another way go to search- Give search term 'Tables' -> there u can find the tables involved.
    Regards
    Bhupal Reddy

  • I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    There probably is, but it requires that you be able to use punctuation and write in sentences so that we can understand exactly what you want.
    You can block others from using your Apple ID by changing your password.  There is no way to erase what was already downloaded on to someone else's device, for obvious reasons,

  • Sent my iphone in for repair. want to know if anything has been done?

    basically, i sent my iphone 4 running iOS 7 to repair my broken, cracked screen. i went to update my apps on my phone and it came up with the mans email with his apple ID. i then changed this back to mine but i was curious as to why he had his apple ID on there. I should also add that when i got the phone from him most apps were missing so i backed it up after i got home (which redownloaded all my apps) but they still needed updating. Ive fixed the problem now just want to know if he tampered with anything on my phone (why would his apple ID be on there).
    thanks in advance

    How are any of us (Apple users just like you) supposed to have any idea?
    We weren't there.  We don't know the specifics of what happened to your iPhone.
    Ask the store that repaired it.

  • Hi it's me rabia and i'm apple user  I want to change my cell phone because it's having scratches on it and i also feel like its home button did't work correctly  So i want to know that can i have a new cell phone on replace of this one at any nearby of m

    Hi it's me rabia and i'm apple user
    I want to change my cell phone because it's having scratches on it and i also feel like its home button did't work correctly
    So i want to know that can i have a new cell phone on replace of this one at any nearby of my house App store without any cost  ?
    But i'm not having any line yet on my phone i use it on net mostly so what is the scene can i have or can't ??
    please inform me soon !

    Is your phone still covered by warranty?  If so, go to your nearest Apple store and depending on what happened, this may or may not be covered by warranty.  If it is, then you can get a replacement exactly as the phone you already have.
    If out of warranty, then there is nothing you can do and you'll have to pay.

  • I want to know why all of the music that is still on my iphone is not on my itunes acct and how I can get it all on there?

    For some reason all of the music on my iPhone is no longer on my iTunes account.  I have done a down load and quite a bit of it has been added to the itunes account, but there is still quite a bit of music that is still not on the iTunes that I have on my phone.  All of the music I have was either put on itunes initially by a CD or I bought it from iTunes directly.  I want to know how I can make them match.

    Yes there is. Those songs are not actually on your iPad. They are in iCloud ready for download if you choose to do so. If you want to remove them go to Settings>iTunes & App Store>Show All>Music>Off. You can also do this in Settings>Music>Show All Music>Off.

Maybe you are looking for