RE: Size of Objects

Try the Forte trace flag, trc:os:5:5.
It will tell you the size and number of objects in memory.
(Note: I don't think it well put together your entire object graph
for you.
(e.g. If you have pointers to other complex objects hanging
off of your object, I don't believe they are reflected in the
object size.)
Hope this helps!
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of
[email protected]
Sent: Thursday, October 01, 1998 12:55 PM
To: [email protected]
Subject: Size of Objects
I am trying to find the size of an object in memory. Can someone tell me
what the best way is?
If I store the object in a MemoryStream, the Size() method return the
total bytes in the stream, but
does this correspond to the size of the object in memory?
Regards,
Peter Kelly
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

I used to serialize the object and inspect the size of
the file.
This way it worked fine for me.
Hope this helps!
Ajith Kallambella M
Forte Systems Engineer,
International Business Corporation.
I am trying to find the size of an object in memory.Can someone tell me
what the best way is?
If I store the object in a MemoryStream, the Size()method return the
total bytes in the stream, but
does this correspond to the size of the object inmemory?
Regards,
Peter Kelly-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Similar Messages

  • How to change Font Size of Object Explorer in "SQL Server Management Studio"

    Dear Team,
    "SQL Server Management Studio" is a fantastic IDE for the database.
    There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
    Can you please accumulate this feature in IDE ASAP?
    Many Thanks,
    Bhavesh

    Its there
    Go to Tools -> Options
    Then under Environment you've fonts and colors tab where you can specify a higher font size.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to view the physical size of objects

    Hi
    Please advise how to view the physical size of objects like tables, indexes, materialize views etc.
    Wishes
    Jawad

    To see the physical size of objects like tables, indexes, use
    USER_SEGMENTS where SEGMENT_TYPE=table/index/partition etc.
    But for views/packages/java/trigger, you can only see rough estimate in USER_OBJECT_SIZE

  • Still not supporting relative size of objects?

    Hi everybody!
    Am I blind? Just downloaded and installed iWork '09, hoping they added the possibility to adjust the size of objects like pictures in a relative manner, finally.
    Let's say, you have some screenshots for creating a documentary. All of different sizes. You want all of them to appear in your Pages document at 50 % of their original size. How can you manage this? I still didn't find a way for this simple task.
    Have I really to use Word for Pages can't help me with this?
    Regards,
    Olaf

    Apple deliver with the operating system several scripts allowing us to manipulate our pictures.
    Here is one of them edited to divide the pictures dimensions by two.
    --[SCRIPT Half_size}
    property done_foldername : "Reduced Images"
    property originals_foldername : "Original Images"
    property newimage_extension : "jpg"
    -- the list of file types which will be processed
    -- eg: {"PICT", "JPEG", "TIFF", "GIFf"}
    property type_list : {"TIFF", "GIFf", "PNGf", "PICT", "JPEG"}
    -- since file types are optional in Mac OS X,
    -- check the name extension if there is no file type
    -- NOTE: do not use periods (.) with the items in the name extensions list
    -- eg: {"txt", "text", "jpg", "jpeg"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
    property extension_list : {"tif", "tiff", "gif", "png", "pict", "pct", "jpeg", "jpg"}
    on adding folder items to this_folder after receiving these_items
    tell application "Finder"
    if not (exists folder done_foldername of this_folder) then
    make new folder at this_folder with properties {name:done_foldername}
    end if
    set the results_folder to (folder done_foldername of this_folder) as alias
    if not (exists folder originals_foldername of this_folder) then
    make new folder at this_folder with properties {name:originals_foldername}
    set current view of container window of this_folder to list view
    end if
    set the originals_folder to folder originals_foldername of this_folder
    end tell
    try
    repeat with i from 1 to number of items in these_items
    set this_item to item i of these_items
    set the item_info to the info for this_item
    if (alias of the item_info is false and the file type of the item_info is in the type_list) or (the name extension of the item_info is in the extension_list) then
    tell application "Finder"
    --set name of this_item to "YK#" & (text -4 thru -1 of ("0000" & i))
    my resolveconflicts(thisitem, originals_folder, "")
    set the new_name to my resolveconflicts(thisitem, results_folder, newimage_extension)
    set the source_file to (move this_item to the originals_folder with replacing) as alias
    end tell
    processitem(sourcefile, new_name, results_folder)
    end if
    end repeat
    on error error_message number error_number
    if the error_number is not -128 then
    tell application "Finder"
    activate
    display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
    end tell
    end if
    end try
    end adding folder items to
    on resolveconflicts(thisitem, target_folder, new_extension)
    tell application "Finder"
    set the file_name to the name of this_item
    set file_extension to the name extension of this_item
    if the file_extension is "" then
    set the trimmed_name to the file_name
    else
    set the trimmed_name to text 1 thru -((length of file_extension) + 2) of the file_name
    end if
    if the new_extension is "" then
    set target_name to file_name
    set target_extension to file_extension
    else
    set target_extension to new_extension
    set target_name to (the trimmed_name & "." & target_extension) as string
    end if
    if (exists document file target_name of target_folder) then
    set the name_increment to 1
    repeat
    set the new_name to (the trimmed_name & "." & (name_increment as string) & "." & target_extension) as string
    if not (exists document file new_name of the target_folder) then
    -- rename to conflicting file
    set the name of document file target_name of the target_folder to the new_name
    exit repeat
    else
    set the name_increment to the name_increment + 1
    end if
    end repeat
    end if
    end tell
    return the target_name
    end resolve_conflicts
    -- this sub-routine processes files
    on processitem(sourcefile, new_name, results_folder)
    -- NOTE that the variable this_item is a file reference in alias format
    -- FILE PROCESSING STATEMENTS GOES HERE
    try
    -- the target path is the destination folder and the new file name
    set the target_path to ((results_folder as string) & new_name) as string
    with timeout of 900 seconds
    tell application "Image Events"
    launch -- always use with Folder Actions
    set this_image to open file (source_file as string)
    scale this_image by factor 0.5
    save this_image as JPEG in file target_path with icon
    close this_image
    end tell
    end timeout
    on error error_message
    tell application "Finder"
    activate
    display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
    end tell
    end try
    end process_item
    --[/SCRIPT]
    If you don't know the way we use that, enter the Finder's Help and search for "folder action".
    Yvan KOENIG (from FRANCE vendredi 16 janvier 2009 20:26:11)

  • Determining size of objects

    hi , is there any way we can determine the size of objects in java ,like we have sizeof() in C. because till now I have only found functions in runtime class to determie the mem. as total OR max. OR free

    In Java 1.5 is the Instrumentation package which can provide something like Object sizes. Never used it myself, though.

  • RE: RE : Size of Objects

    According to Forte, the size of serialized object is smaller that object
    size in the memory (in particular due to overhead necessary to support
    garbage collector).
    There is a way to calculate object size more or less precisely, but it
    fairly complex and definitely undocumented. I'm not sure that I will
    remember everything correctly (it was 1.5 years ago), so if somebody has
    more up-to-date knowledge, please correct any errors.
    There is, special flag cfg:?? (I do not remember it exactly), which
    allows you to invoke so-called INTERNAL methods. One of such methods is
    method getSize() on class Object. You can use it to receive object size
    in the memory. After that you need to add all memory taken by object
    simple type attributes, including implicit ones (e.g. for TextData
    object you need execute getSize() and add result of getAllocatedSize(),
    because string itself stored as separate entity). Result must be rounded
    by modulo 8 and after that you need add another 8 bytes for garbage
    collector information. After that you need calculate such size for all
    complex attributes which are objects themselves.
    Hope this will help.
    WBR,
    Nick Sakharov
    CBSI
    From: Ajith Kallambella M[SMTP:[email protected]]
    Reply To: Ajith Kallambella M
    Sent: Thursday, October 01, 1998 2:34 PM
    To: [email protected]; ForteUsers
    Subject: RE : Size of Objects
    I used to serialize the object and inspect the size of
    the file.
    This way it worked fine for me.
    Hope this helps!
    Ajith Kallambella M
    Forte Systems Engineer,
    International Business Corporation.
    I am trying to find the size of an object in memory.Can someone tell me
    what the best way is?
    If I store the object in a MemoryStream, the Size()method return the
    total bytes in the stream, but
    does this correspond to the size of the object inmemory?
    Regards,
    Peter Kelly-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    I used to serialize the object and inspect the size of
    the file.
    This way it worked fine for me.
    Hope this helps!
    Ajith Kallambella M
    Forte Systems Engineer,
    International Business Corporation.
    I am trying to find the size of an object in memory.Can someone tell me
    what the best way is?
    If I store the object in a MemoryStream, the Size()method return the
    total bytes in the stream, but
    does this correspond to the size of the object inmemory?
    Regards,
    Peter Kelly-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • How to find out size of objects

    hi, i need to draw a few objects in PS - a few rectangles and circles, and i need to draw them with precise size - width and height, but i dont know where i can find some information about their width and height (in cm or mm). once i draw them, there's nothing about their size in the panel or properties. thanks  

    A way to measure pretty much anything is to select the Ruler tool, then drag from one side to the other...
    Once you've set the endpoints, you can read the results near the top of the Photoshop main window.  It will read out in whatever units you've set in Edit - Preferences - Units & Rulers
    -Noel

  • Need help on -- Size of object

    how do i get the size of the object ?
    Thanks in Advance

    You can't. What makes you think you need this, because in Java we don't need to worry about this. You do not explicitly allocate or free memory, so the size of an object is not needed. Some people will tell you to serialize an object to a byte array and that the size of the array is the size of the object, but they're completely wrong. The size of an object is, roughly, the size of every primitive field it has, plus the size of a reference to an object multiplied by the number of reference fields, plus a small overhead for simply existing itself. But as I said, you don't need to worry about it

  • SVG changing size of objects

    I scan my pieces in. Trace them with the pencil (love the new version) save my file. Than I save as a svg file. But in some cases it changes the size of these objects and in others it does not. So some place somthing is different. How do I stop this?

    When saving an SVG there's an option called "Responsive"
    Turn it off to maintain exact size.

  • Why does object frame style change when I re-size the object?

    I am creating a catalog with lots of images that I anchor amidst text.  I have created a simple style that just adds a 1pt black stroke frame, and apply to each. When I later decide to re-size one of the images (primarily by dragging with mouse with CTRL-SHIFT), I notice that the style has been over-ridden, and the frame appears altered. I can then successfully clear the over-ride, but what a pain.  How can I avoid this? Is there a way to "mass" reset many such problems? Like Find/Change, object style, and clear over-ride?

    If you can not see "Adjust Stroke Weight When Scaling" option in the control panel, you will need to enable it first.
    Go to Edit > Menus > Category: Context & Panel Menus > Control Panel Layout Menu and then make sure "Adjust Stroke Weight When Scaling" has an eyeball selected to make this visible.

  • Enlarging document size and objects as a group

    Greetings . . . New to CS6 and getting my feet wet and most of the features are pretty straightforward. But I haven't been able to find a help file for this one.
    I have an 11x17 document with objects that I need to enlarge to larger sizes to create new templates. How do I enlarge the document size AND enlarge the document's contained objects by the same proportion? I need to take the whole 11x17 document and everything in it and enlarge it to 20x30, 40x60, etc. If I just enlarge the page size in document setup it just enlarges the page, but not the objects on it. I have higher res images to update the object links with once I get it enlarged.
    Thanks! . . . Dave

    Try to Enable Layout Adjustment from Layout menu before enlarge page size in the document setup.

  • Attachment size client object model in sahrepoint 2010

    hI
        Here is my code 
    ExecuteOrDelayUntilScriptLoaded(getWebProperties, "SP.js");
    var  attachmentFiles;
    function getWebProperties()
     var itemId=5;
     var list;
    var item;
     var file; 
                  var ctx = SP.ClientContext.get_current();            
                    var webSite = ctx.get_web();
                      var attachmentFolder=webSite.getFolderByServerRelativeUrl('Lists/xxx/Attachments/'+itemId);
                       attachmentFiles= attachmentFolder.get_files();
                        ctx.load(attachmentFiles);
                        ctx.executeQueryAsync(Function.createDelegate(this,this.onSuccess),Function.createDelegate(this,this.onFailed));                 //  ctx.load(attachmentFolder);
    function  onSuccess(sender, args)
    alert('success'); 
        alert(attachmentFiles.get_count());
    for(var p=0;p<this.attachmentFiles.get_count();p++)
               var file = attachmentFiles.itemAt(p);     
                var filename = file.get_name(); 
              //debugger;
                alert(filename);  
       // need the file size here 
    How do i get the Total attachment file size here .There are no properties to  get the attachment size .Help much appreciated Thanks in advance 
    nain1987

    Check if below helps
    http://sharepoint.stackexchange.com/questions/12652/get-total-size-of-attached-files-on-all-list-items-in-sharepoint-2007with-powers
    function GetListSize($List)
    [long]$listSize = 0
    $allAttachmentsFolder = $List.RootFolder.SubFolders["Attachments"]
    foreach ($listItem in $List.Items)
    $listItemAttachments = $listItem.Attachments
    $attachmentsFolder = $allAttachmentsFolder.SubFolders[$listItem.ID]
    foreach($file in $listItemAttachments)
    $listSize += $attachmentsFolder.Files[$file].Length
    $totalInMb = ($listSize/1024)/1024
    $totalInMb = "{0:N2}" -f $totalInMb
    return $totalInMb
    http://social.technet.microsoft.com/Forums/en-US/e5d2ff3d-01c7-4cc0-a081-29a4dfbb0fad/getting-the-sharepoint-list-attachment-size-using-javascript?forum=sharepointcustomizationlegacy
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/c745bd1c-cbcb-4523-bdac-7c8d62d1d3ff/show-the-size-of-attachments-is-sharepoint-2007?forum=sharepointcustomizationlegacy

  • Fixing size of objects

    Hi, I'm new with PE 6 and I'm trying to passport picture in which the the whole picture has to have a certain size, which is "easy" selecting the size on the printer, however the top part of it has to have a space of 5 mm between the top of the head and the edge of the picture.
    As well the head muss be maximum 29 mm high.
    I hope you know how to do this kind of calculations in order to print the requested picture. Here is not because of not paying the pictures, it's more like knowing how to work with PE.
    Thanks!

    Daniel,
    I made 2 pictures to specification for this purpose about a year ago. Take the head shot against a white background - I used a projection screen placed outdoors on a good day for balanced lighting. Open picture in Editor. Working in layers is a must, so have the layers palette visible.
    1. Duplicate background layer, work on background copy layer.
    2. Set resolution between 240-300px/in in order to get good print
    3. Access the magic wand tool, click on white background, hit delete on keyboard
    4. Go to Edit>copy
    5. Open new blank document, 2x2", same resolution as in step #2, background>white
    6. Go to Edit>paste
    7. Access move tool and with corner handles adjust size. In my version of PE I hold down the shift key in order to preserve aspect ratio, but I understand that in later versions this is not mandatory.
    8. One can use the other handles gingerly in order fine-tune one of the requisite dimensions if necessary.
    9. It is helpful to have the rulers and the grid displayed for orientation.
    HTH,
    Ken

  • Tracking size of object in JVM

    Hi
    How do i find out which objects are taking memory in JVM.

    Get a heap dump in HPROF binary format using jmap or the new HotSpotDiagnostic MBean through JConsole if your Java application is running on JDK 6 and then analyze it with the jhat tool in JDK 6 or the new HeapWalker in NetBeans 6. NetBeans 6 can also be used to get a heap dump.
    For more detailed info have a look at the Hands-On Lab I presented at JavaOne 2007 about troubleshooting Java applications:
    http://developers.sun.com/learning/javaoneonline/sessions/hol2007/1420/jmxjconsole/index.html#Exercise_2_5
    Regards,
    Luis-Miguel Alventosa
    Java SE JMX/JConsole development team
    Sun Microsystems, Inc.
    http://blogs.sun.com/lmalventosa/

  • Stream size in object serialization

    hi everyone ,
    Is there any way to know the size of a stream before starting to read the stream ?
    Thanks

    hi everyone ,
    Is there any way to know the size of a stream
    before starting to read the stream ?
    ThanksYou could use a BufferedInputStream and use the available() method. It returns the number of bytes available on the stream.

Maybe you are looking for