Time take to execute each method
is it possible to find the time take to execute each method using jdeveloper profiler. Are there any tutorials that tells you how to do this.
Thanks in advance
Sorry, we have yet to make one available, but the tutorial provided should act as good starting point even you are dealing with different versions.
--RiC
Similar Messages
-
How can I execute a method on a specified time?
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?
BilgeTonyukuk99 wrote:
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?As a simple example, take a look at http://www.javapractices.com/topic/TopicAction.do?Id=54.
As an alternative (and looks like better approach), you could use the ScheduledThreadPoolExecutor. -
Query on view - IS the querry executed each time view is referred?
I want to know whether query inside a view is executed each time when the view is being referred?
Also which on of below will be faster?
select
a1.x,
a1.y,
b1.z
from
TableA a1,
TableB b1
where
a1.keyName = 'F' || b1.someKey
OR
cretae view myView as
select
'F' || someKey as anotherKey
from
TableB
select
a1.x,
a1.y,
b1.z
from
TableA a1,
myView b1
where
a1.keyName = b1.anotherKeyA view is just a stored query, so it has to be executed each time it is referenced in a query.
The two queries should have identical performance. It might be vanishingly faster to parse the first query than the second, but I doubt you would be able to detect the difference.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Time taken to to execute a method
Hi,
I have a method which reads a large file. Is it possible to get the time which needs to execute this method and to get elapsed time while reading the file.
Thanks a lot,
Chamal.Example:
private long time; // me love you
public static void main(String[] mufflewumps)
startTime();
new someClass().someLongMethod();
showElapsedTime();
private void startTime()
time = System.currentTimeMillis();
private void showElapsedTime()
System.out.println("someLongMethod() elapsed time: " + (System.currentTimeMillis - time)); -
Deleting pictures it takes for ever each time
When I delete pictures in Photoshop Elements, it takes for ever each time. I have a fast computer, so some setting is wrong or a bugg in the program. Has anyone the same problem?
Actually also when I start it can be slow and when thumbnails are created, maybe it is operations when accessing the disk that is slow.
Hälsningar
Rolf
Från: saurabh288 [email protected]
Skickat: den 26 februari 2013 12:57
Till: Rollo2013
Ämne: Deleting pictures it takes for ever each time
Re: Deleting pictures it takes for ever each time
created by saurabh288 <http://forums.adobe.com/people/saurabh288> in Photoshop Elements - View the full discussion <http://forums.adobe.com/message/5103232#5103232 -
Can I track the time it takes to complete each question?
I know I can track the time for the entire quiz, but can I track how long it takes to complete each question?
Thanks!I know I can track the time for the entire quiz, but can I track how long it takes to complete each question?
Thanks! -
Javascript to open a popup - but action must be executed each time pdf is opened
Background: I wish to add a popup disclaimer to a PDF document. I have found javascript that accomplishes this task. However, I wish to attach this popup
How do I add an action item to a particular PDF, having it execute each time the PDF is loaded? According to a google search this was possible in Adobe 8. I am using Adobe Acrobat Pro, verison X. Here is the code below:
var msg = "Type your message here"
app.alert(msg,3);
I would also like to ensure this feature works with Preview the PDF viewer on Apple computers.
Thanks in advanceIn Acrobat X you can embed a doc-level script by going to Tools - JavaScript - Document JavaScripts.
Make sure not to place your code in a function, though.
It will probably work in Preview, but there are no guarantees. -
My logitech external keyboard started typing strange figures and takes a photo each time I press delete. Ipad internal keyboard works fine. Btooth etc all connected. Happened suddenly.Did I press a strange key somehow??
Thank you but - Are there batteries?? Is it not wireless? Very thin and I would have no ideas where batteries were?
-
Execute some method once an effect has been played
Hi everybody, I want to execute a method after the effect i have played is finished. is there any property in AnimationProperty tag to acheive it.
In the component i have pasted below, getting data from xml file and using repeater populate those data in Hbox then it moves the horizontal scroll position of HBox using animation property. once animation property has been played, it has to execute some method. how can we do it ?
the next question is
i want to play animation propery infinite times and i have done it with the help of repeatCount but it takes some delay in between. how can it play infinite imes without any delay in between.
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="getXML.send(),slide(event)" >
<mx:Script>
<![CDATA[
import mx.containers.Canvas;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.effects.easing.*;
import mx.controls.*;
import mx.collections.*;
[Bindable] public static var refThumb : Thumbnail;
[Bindable] public var xmlData : XMLListCollection = new XMLListCollection();
[Bindable] public var xml :XMLList;
public function resultHandler(event :ResultEvent) : void
xml = event.result.product as XMLList;
public function faultHandler(event :FaultEvent):void
public function slide(event :Event):void{
ap.play();
]]>
</mx:Script >
<mx:AnimateProperty id="ap" effectEnd="{Web.refWeb.nextSlider()}" repeatCount="0" property="horizontalScrollPosition" fromValue="0" target="{can}" toValue="7200" duration="72000" startDelay="0"/>
<mx:HTTPService id="getXML" showBusyCursor="true" url="catalog.xml" resultFormat="e4x" result="resultHandler(event)" fault="faultHandler(event)" />
<mx:HBox paddingTop="20" id="can" width="600" height="200" backgroundColor="white" horizontalScrollPolicy="off" verticalScrollPolicy="off" backgroundAlpha="0.2" >
<mx:Repeater id="rep" dataProvider="{xml}" >
<mx:VBox id="comp" horizontalAlign="center" horizontalGap="200" width="200" height="200" verticalScrollPolicy="off" horizontalScrollPolicy="off">
<mx:Image source="{rep.currentItem.image}" width="150" height="100" maintainAspectRatio="false" />
<mx:Text text="{rep.currentItem.name}" fontWeight="bold" />
<mx:Text text="{'$ '+ rep.currentItem.price}" fontWeight="bold" />
<mx:LinkButton label="Add cart" color="blue" />
</mx:VBox>
</mx:Repeater>
</mx:HBox>
</mx:VBox>you have posted a VBox component code so it will be the part of your parent Application are you injecting data into this component from the main application ? and your
httpService requires catalog.xml so you need to attach that file so i can run on my side successfully . instead of doing this you can tell the problem you are having so i can guide you on that
regards,
ATIF. -
Run-time error while executing alv grid report
Hi everyone
I m trying to run a alv grid report it is giving a run time error while executing the statement CALL METHOD V_ALV->SET_TOOLBAR_INTERACTIVE.
Actually i added 2 buttons in the toolbar.after that when i execute the report i m getting errors.
<b>Error Analysis</b>
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "TOOLBAR_MENUS_INIT" "(METHOD)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: "ME->M_CL_MENU_BUTTON_VARIANT").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.Hi Dinesh,
Seems you have not initialised ( Instantiated in OO ) the object and / or the parent container.
Check if you have create object for both the parent as well as the alv object.
So when you instatntiate the object of ALV you pass the object ( instantiated before hand ) in the parent container position.
Also you would have to register the events to the object using method. Then only the buttons will finction.
eg :
IF G_CUSTOM_CONTAINER IS INITIAL.
CREATE OBJECT CUSTOM_CONTAINER_1
EXPORTING CONTAINER_NAME = CONTAINER_1.
CREATE OBJECT GRID1
EXPORTING I_PARENT = CUSTOM_CONTAINER_1.
CALL METHOD ALV_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING I_STRUCTURE_NAME = 'VBAK
CHANGING IT_OUTTAB = IT_VBAK.
Reward points if useful. -
Using 'For Each' Method in re-usable ADF library application
I'm trying to build a re-usable RSS library application from the following (using JDev Studio Edition Version 11.1.1.4.0 on Windows 2008 Server):
http://blogs.oracle.com/dana/entry/reusable_adf_library_rssfeedre
I'm bascially creating the application from scratch, but I run into problems when trying to drag and drop the 'output text' data controls into the jsff page fragment. The instructions say that "For Each" iterator was used as the operation to iterate through these fields but I don't see For Each appearing as any option for the Operations anywhere in the data controls. The only options i see are CREATE, DELETE, EXECUTE, FIRST, LAST, NEXT, PREVIOUS, RemoveRowWithKey, SetRowWithKey, SetCurrentRowWithKey. After droppipng the data controls and going to the 'Bindings', i can't see options for using For Each either.
Can anyone please tell me how to add the For Each method as per the above instructions? Thank you!<af:forEach> will be sufficient for most user's needs, it does not work with a JSF DataModel, or CollectionModel. It also cannot be bound to EL expressions that use component-managed EL variables..
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_forEach.html.
if you want to iterate then you have to use the programatic iteration using the rowSetIterator -
Authorization to execute a method of BO
Hello,
The workitem received by an agent goes into error status when executed due to the reason that the user is not authorized to execute the method of the business object. Please let me know the role or the authorization to be given to the user to execute the workitem. The method is a custom one in a custom BO.
Thanks,
SamsonHi Samson,
To rectify this issue you need to get access to the authorization object to execute the BO method.
To do go, execute the method and on getting the error, go to t-code SU53.
There you would find an authorization error message. Take a screenshot of this error and send to your basis team and ask them to provide you toe desired authorizations.
Hope this helps!
Regards,
Saumya -
Execute mbean methods in a separate dedicated thread.
Hi all,
I have an MBean and I want that all its methods be executed in swing thread. [Common swing confinement rules].
Is there a way to do this by jmx rulebook?
One way i though of was to use a proxy class with an inocationhandler which executes the method in the swing thread using SwingUtilities.Invokelater().
Is there any other cleaner way?
Thanks,The approach you mention looks good. An alternative is that if your MBean is a DynamicMBean then you can simply wrap it in an implementation of the DynamicMBean interface that forwards each of the five methods (excluding getMBeanInfo()) of the interface to the wrapped object, but on the Swing EDT. To avoid hassle with checked exceptions I'd be inclined to use an InvocationHandler for that too. Something like this:
public class EDTInvocationHandler implements InvocationHandler {
private final Object wrapped;
public EDTInvocationHandler(Object wrapped) {
this.wrapped = wrapped;
public Object invoke(Object proxy, final Method m, final Object[] args) throws Throwable {
if (m.getName().equals("getMBeanInfo"))
return m.invoke(wrapped, args);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
return m.invoke(args);
} catch (InvocationTargetException e) {
...log e.getCause()...
} catch (Exception e) {
...log e...
public static DynamicMBean edtDynamicMBean(DynamicMBean mbean) {
return Proxy.newProxyInstance(
DynamicMBean.class, DynamicMBean.class.getClassLoader(),
new EDTInvocationHandler(mbean));
}Depending on what you want to achieve, it might be better to use invokeAndWait, which would mean you could propagate exceptions to the caller.
If your MBeans are Standard MBeans (or MXBeans) then you can make them into Dynamic MBeans using javax.management.StandardMBean.
Regards,
Éamonn McManus -- JMX Spec Lead -- [http://weblogs.java.net/blog/emcmanus] -
Error when I am executing any method in shopping cart
Dear All ,
I am getting following error when I am executing any method in shopping cart.
*"No data found for contact person 0000000244 . Inform system administration . "*
Please Can you help me with this error .Your error states:
!syParameterNotFound,dDocTitle
Can you confirm that your profile includes all required data, specifically, the dDocTitle? Fix this issue, then re-check your logs. if there are other missing required parameters, fix each one.
Eventually, you should have a successful check-in.
Hope this helps,
-ryan -
How to identify time taken to execute a package
Hi all,
Is the method without TKPROFF to find the time taken to execute a package that calls a procedure.
for examples
Lets says I execute a packaage at SQLplus window
SQL> Execute my_pack.bal_proc;
(It took some time may be 4 hrs to excecute according to my watch).
At this stage if I want to find the time by some sql command that after executing the package what was the time.
can someone help me in finding a query that tell what was the time taken to execute a package.
thanks n rgds
saazYou can check start and end time
Then end time -start time
SQL> select systimestamp start_time from dual;
START_TIME
11-AUG-09 11.30.47.758282 AM -04:00
SQL> Execute my_pack.bal_proc;
SQL> select systimestamp end_time from dual;
END_TIME
11-AUG-09 11.31.11.207530 AM -04:00Edited by: user5495111 on Aug 11, 2009 8:32 AM
Maybe you are looking for
-
How Do I Put Movies From My Computer To My 30 GB? (MAC COMPUTER)
I bought my new ipod yesterday and it is now my 3rd one, but i am having problems putting MPEG's on to it. they are in my libary in itunes but i cannot put them on. Anybody Know How?
-
Error while executing WD Application with a Interactive Form
Hello All, I am trying to run an WD application on my local j2ee engine in which i have added an Interactive form( i have added only static text in that ), but when i test the application it is throwing an error like: The initial exception that cause
-
Report based on plsql table type
Is it possible crete a report (updatable) based on plsql table type? thank in advance Franco Galante
-
HT4827 How do you disable Server OS X in Mountain Lion?
I read the article provided by apple on how to disable the OS X server in Lion found at http://support.apple.com/kb/HT4827. I did as instructed, but in step 6, there is no "Dedicate system resources to server services" option. The problem I am having
-
PM01 - Enhance the Standard List Screen
Morning All I have read the various posts and standard SAP documentation on enhancing the standard list screen. However, I am stil in position of having my new structure - ZPLIS0019 being populated in subroutine fill_liststruc but the fields do not a