C# Programming - .NET Framework - Discussion

Discussion :: .NET Framework - General Questions (Q.No.2)


Which of the following are valid .NET CLR JIT performance counters?

  1. Total memory used for JIT compilation
  2. Average memory used for JIT compilation
  3. Number of methods that failed to compile with the standard JIT
  4. Percentage of processor time spent performing JIT compilation
  5. Percentage of memory currently dedicated for JIT compilation

[A]. 1, 5
[B]. 3, 4
[C]. 1, 2
[D]. 4, 5

Answer: Option B


No answer description available for this question.

Nidhi said: (Jul 18, 2011)  
Ya its right.

Akshada said: (Sep 3, 2011)  
Please explain the term JIT in full detail and how it works?

Sushma M N said: (Sep 3, 2011)  
JIT means just in time.

Pravin Kaushik said: (Sep 4, 2011)  
What all action does JIT perform?

Deepak said: (Sep 8, 2011)  
Jit means compiling the code when its needed, this saves memory as not all the program comes into ram at once. But comes in modules as when needed.

Geetika said: (Sep 17, 2011)  
Just in time generates the native code after the MSIL comliled by the CLR.

Himanshu said: (Sep 19, 2011)  
Geetika explanation is right.

Varma said: (Dec 14, 2011)  
Performance Counters are Windows OS objects that capture metrics about the performance of hardware and applications. For example, performance counters can capture performance metrics for processors, memory, threads, events, and processes. Metrics can be used to detect problems or to 'tune' applications and hardware for maximum performance.

.NET Framework Performance Counters

There are performance counters you can use to collect metrics about performance within the Common Language Runtime (CLR) and ASP.NET.

JIT Performance Counters
Describes the performance counters that provide information about code that has been just-in-time (JIT) compiled.

Venkatesh said: (Dec 22, 2011)  
Guys can you please explain me how the answer is correct ?

Suresh Chowdary said: (Feb 1, 2012)  
The first thing we must know is after writing the programm code in environment(human understandable language) we must convert to System understandable language that is done by compiler..that code will be generated in the form of MSIL(or)IL(or)BYTE CODE.

Now this code must be convert to NATIVE code i.e this code must be understand by the MICROPROCESSOR.so for this reason some time need to be spend by the PROCESSOR

After this step we can run the application which are implemented by the CLI

What is CLI?
It is open specification given by the MICROSOFT which provides the complete infrastructure required to work with the multiple programming languages.
i.e whatever languages we use for developing the application..that language must be work in .net environment.that is the facility provided by the CLI.

Teju said: (Feb 29, 2012)  
Chowdary is up to point:-)

San said: (Mar 14, 2012)  

Manish Gupta said: (Apr 14, 2012)  
Actually JIT work is to convert CIL (MSIL) code into Native Language (machine Language).

Jiya said: (Jul 14, 2012)  
JIT (Just In Time) compiler which is improve the performance of the program.

Farhat Ahmad said: (Jul 24, 2012)  
JIT{just in time) compiler converts byte code to its native code.

Babu said: (Jun 7, 2013)  
MSIL or CIL is the same code.

MSIL/CIL Means Bytecode ---(Converted By JIT Compiler)--->Machine Code (Native Code)

Amol said: (Jul 22, 2013)  
JIT work is to convert CIL code into Native Language.

Bijayananda Pradhan said: (Aug 29, 2013)  
I am n't understand CLR descriptions.

Sangamesh said: (Sep 11, 2013)  
Source Code --CLR(.Net Virtual Machine)-->MSIL(IL Code) ---JIT-->Native code(Machine Code).

Ravi Patel said: (Feb 10, 2014)  
When any programmer writes code so its must convert to msil code and after that its convert into native code by the jit compiler, which is understandable to microprocessor.

Kunal said: (Jun 9, 2014)  
What is mean by native code & how it is important?

Ganesh said: (Jul 19, 2014)  
3rd statement answer is the jit compiler compiles those part that we are modify later and that time no need to compile hole program.

4th statement answer because of compile limited part that reason it percentage of compile is improve.

Narendra said: (Dec 15, 2014)  
The MSIL code convert to target code with the help of JIT compilation.

Ubedullah Kalhoro said: (Jan 12, 2015)  
JIT just in time compiler compiles source in parts not complete source code.

Ubedullah said: (Jan 12, 2015)  
Just in Time compile not compiles complete source code, it compiles code that to execute.

Divya said: (Jul 7, 2015)  
Can you tell more about JIT?

Hansraj Suman said: (Oct 14, 2015)  
JIT is Just In Time.

JIT = One time compiler and the store the data pre-compiler and use direct compile second time.

Anurag said: (Mar 11, 2016)  
Performance counter:


# of IL Bytes JITted.

Displays the total number of Microsoft intermediate language (MSIL) bytes compiled by the just-in-time (JIT) compiler since the application started. This counter is equivalent to the Total # of IL Bytes Jitted counter.

# of Methods JITted.

Displays the total number of methods JIT-compiled since the application started. This counter does not include pre-JIT-compiled methods.

% Time in Jit.

Displays the percentage of elapsed time spent in JIT compilation since the last JIT compilation phase. This counter is updated at the end of every JIT compilation phase. A JIT compilation phase occurs when a method and its dependencies are compiled.

IL Bytes Jitted / sec.

Displays the number of MSIL bytes that are JIT-compiled per second. This counter is not an average over time; it displays the difference between the values observed in the last two samples divided by the duration of the sample interval.

Standard Jit Failures.

Displays the peak number of methods the JIT compiler has failed to compile since the application started. This failure can occur if the MSIL cannot be verified or if there is an internal error in the JIT compiler.

Total # of IL Bytes Jitted.

Displays the total MSIL bytes JIT-compiled since the application started. This counter is equivalent to the # of IL Bytes Jitted counter.

Laxman said: (May 26, 2016)  
Please, define the Number of methods that failed to compile with the standard JIT.

What is the meaning of this sentence?

Viz said: (Sep 6, 2017)  
JIT improve the Performance of our program, in run time that when which part compile. And CLR is convert our MSIC to native.

Chandu said: (Feb 19, 2019)  
The JIT compiler translates the MSIL code of an assembly to native code and uses the CPU architecture of the target machine to execute a .NET application. The JIT compiler also enforces type-safety in the runtime environment of the .NET Framework

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.